Skip to content

Commit 2408d87

Browse files
authored
Merge pull request #23666 from rwestMSFT/rw-0810-includes-adventureworks
[Bulk] INCLUDE file maintenance: Remove empty sssampledbnormal_md.md
2 parents 894ba87 + b99403c commit 2408d87

48 files changed

Lines changed: 63 additions & 63 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/connect/jdbc/basic-data-types-sample.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ The code file for this sample is named BasicDataTypes.java, and it can be found
2727

2828
## Requirements
2929

30-
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
30+
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
3131

32-
The sample will create the required table and insert sample data in the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database:
32+
The sample will create the required table and insert sample data in the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database:
3333

3434
> [!NOTE]
3535
> The [!INCLUDE[jdbcNoVersion](../../includes/jdbcnoversion_md.md)] provides mssql-jdbc class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see [System Requirements for the JDBC Driver](system-requirements-for-the-jdbc-driver.md).
3636
3737
## Example
3838

39-
In the following example, the sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] database, and then retrieves a single row of data from the DataTypesTable test table. The custom displayRow method is then called to display all the data in the result set using various get\<Type> methods of the [SQLServerResultSet](reference/sqlserverresultset-class.md) class.
39+
In the following example, the sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] database, and then retrieves a single row of data from the DataTypesTable test table. The custom displayRow method is then called to display all the data in the result set using various get\<Type> methods of the [SQLServerResultSet](reference/sqlserverresultset-class.md) class.
4040

4141
Next, the sample uses various update\<Type> methods of the SQLServerResultSet class to update the data in the result set, and then calls the [updateRow](reference/updaterow-method-sqlserverresultset.md) method to persist that data back to the database.
4242

docs/connect/jdbc/caching-result-set-data-sample.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ The code file for this sample is named CacheResultSet.java, and it can be found
3737

3838
## Requirements
3939

40-
To run this sample application, set the classpath to include the mssql-jdbc jar file. You also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
40+
To run this sample application, set the classpath to include the mssql-jdbc jar file. You also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
4141

4242
> [!NOTE]
4343
> The [!INCLUDE[jdbcNoVersion](../../includes/jdbcnoversion_md.md)] provides mssql-jdbc class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see [System Requirements for the JDBC Driver](system-requirements-for-the-jdbc-driver.md).
4444
4545
## Example
4646

47-
In the following example, the sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. Then it uses an SQL statement with the [SQLServerStatement](reference/sqlserverstatement-class.md) object, specifies the server-side cursor type, and runs the SQL statement. The data is returned in a SQLServerResultSet object.
47+
In the following example, the sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. Then it uses an SQL statement with the [SQLServerStatement](reference/sqlserverstatement-class.md) object, specifies the server-side cursor type, and runs the SQL statement. The data is returned in a SQLServerResultSet object.
4848

4949
Next, the sample code calls the custom timerTest method, passing as arguments the fetch size to use and the result set. The timerTest method then sets the fetch size of the result set by using the setFetchSize method, sets the start time of the test, and then iterates through the result set with a `While` loop. As soon as the `While` loop is exited, the code sets the stop time of the test, and then displays the result of the test including the fetch size, the number of rows processed, and the time it took to execute the test.
5050

docs/connect/jdbc/connection-url-sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The code file for this sample is named ConnectURL.java, and it can be found in t
2727

2828
## Requirements
2929

30-
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
30+
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
3131

3232
> [!NOTE]
3333
> The [!INCLUDE[jdbcNoVersion](../../includes/jdbcnoversion_md.md)] provides mssql-jdbc class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see [System Requirements for the JDBC Driver](system-requirements-for-the-jdbc-driver.md).

docs/connect/jdbc/data-discovery-classification-sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The code file for this sample is named DataDiscoveryAndClassification.java, and
2626

2727
## Requirements
2828

29-
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
29+
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
3030

3131
```java
3232
import java.sql.Connection;

docs/connect/jdbc/data-source-sample.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The code file for this sample is named ConnectDataSource.java, and it can be fou
2727

2828
## Requirements
2929

30-
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
30+
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
3131

3232
> [!NOTE]
3333
> The [!INCLUDE[jdbcNoVersion](../../includes/jdbcnoversion_md.md)] provides mssql-jdbc class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see [System Requirements for the JDBC Driver](system-requirements-for-the-jdbc-driver.md).

docs/connect/jdbc/handling-complex-statements.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To process complex statements, the JDBC driver provides many methods to query th
2222

2323
When you know the type of object or data that's returned, you can use either the [getResultSet](reference/getresultset-method-sqlserverstatement.md) or the [getUpdateCount](reference/getupdatecount-method-sqlserverstatement.md) method to process that data. To continue to the next object or data that's returned from the complex statement, you can call the [getMoreResults](reference/getmoreresults-method.md) method.
2424

25-
In the following example, an open connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database is passed in to the function, a complex statement is constructed that combines a stored procedure call with a SQL statement, the statements are run, and then a `do` loop is used to process all the result sets and updated counts that are returned.
25+
In the following example, an open connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database is passed in to the function, a complex statement is constructed that combines a stored procedure call with a SQL statement, the statements are run, and then a `do` loop is used to process all the result sets and updated counts that are returned.
2626

2727
:::code language="java" source="codesnippet/Java/handling-complex-statements_1.java":::
2828

docs/connect/jdbc/handling-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The following methods of the `SQLServerError` class can be used to obtain more d
4444

4545
- `SQLServerError.getLineNumber()` returns the line number within the Transact-SQL command batch or stored procedure that generated the error.
4646

47-
In the next example, an open connection to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database is passed in to the function and a malformed SQL statement is constructed that doesn't have a FROM clause. Then, the statement is run and an SQL exception is processed.
47+
In the next example, an open connection to the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)][!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database is passed in to the function and a malformed SQL statement is constructed that doesn't have a FROM clause. Then, the statement is run and an SQL exception is processed.
4848

4949
[!code[JDBC#HandlingErrors1](codesnippet/Java/handling-errors_1.java)]
5050

docs/connect/jdbc/managing-result-sets-with-the-jdbc-driver.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The result set is an object that represents a set of data returned from a data s
2020

2121
The type of result set is determined when a statement is created, which is when a call to the [createStatement](reference/createstatement-method-sqlserverconnection.md) method of the [SQLServerConnection](reference/sqlserverconnection-class.md) class is made. The fundamental role of a result set is to provide Java applications with a usable representation of the database data. This task is typically done with the typed getter and setter methods on the result set data elements.
2222

23-
In the following example, which is based on the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database, a result set is created by calling the [executeQuery](reference/executequery-method-sqlserverstatement.md) method of the [SQLServerStatement](reference/sqlserverstatement-class.md) class. Data from the result set is then displayed by using the [getString](reference/getstring-method-sqlserverresultset.md) method of the [SQLServerResultSet](reference/sqlserverresultset-class.md) class.
23+
In the following example, which is based on the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database, a result set is created by calling the [executeQuery](reference/executequery-method-sqlserverstatement.md) method of the [SQLServerStatement](reference/sqlserverstatement-class.md) class. Data from the result set is then displayed by using the [getString](reference/getstring-method-sqlserverresultset.md) method of the [SQLServerResultSet](reference/sqlserverresultset-class.md) class.
2424

2525
[!code[JDBC#ManagingResultSets1](codesnippet/Java/managing-result-sets-with-t_1.java)]
2626

docs/connect/jdbc/modifying-result-set-data-sample.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ The code file for this sample is named UpdateResultSet.java, and it can be found
2727

2828
## Requirements
2929

30-
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
30+
To run this sample application, you must set the classpath to include the mssql-jdbc jar file. You'll also need access to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. For more information about how to set the classpath, see [Using the JDBC Driver](using-the-jdbc-driver.md).
3131

3232
> [!NOTE]
3333
> The [!INCLUDE[jdbcNoVersion](../../includes/jdbcnoversion_md.md)] provides mssql-jdbc class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see [System Requirements for the JDBC Driver](system-requirements-for-the-jdbc-driver.md).
3434
3535
## Example
3636

37-
The sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database. Then, using an SQL statement with the [SQLServerStatement](reference/sqlserverstatement-class.md) object, it runs the SQL statement and places the data that it returns into an updatable SQLServerResultSet object.
37+
The sample code makes a connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database. Then, using an SQL statement with the [SQLServerStatement](reference/sqlserverstatement-class.md) object, it runs the SQL statement and places the data that it returns into an updatable SQLServerResultSet object.
3838

3939
Next, the sample code uses the [moveToInsertRow](reference/movetoinsertrow-method-sqlserverresultset.md) method to move the result set cursor to the insert row. It then uses a series of [updateString](reference/updatestring-method-sqlserverresultset.md) methods to insert data into the new row. After that, it calls the [insertRow](reference/insertrow-method-sqlserverresultset.md) method to persist the new row of data back to the database.
4040

docs/connect/jdbc/performing-batch-operations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The executeBatch method returns an array of **int** values that correspond to th
2525
> [!NOTE]
2626
> If you do not have to use update counts, you can first issue a SET NOCOUNT ON statement to [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)]. This will reduce network traffic and additionally enhance the performance of your application.
2727
28-
As an example, create the following table in the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database:
28+
As an example, create the following table in the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database:
2929

3030
```sql
3131
CREATE TABLE TestTable
@@ -34,7 +34,7 @@ CREATE TABLE TestTable
3434
Col3 int);
3535
```
3636

37-
In the following example, an open connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal_md.md)] sample database is passed in to the function, the addBatch method is used to create the statements to be executed, and the executeBatch method is called to submit the batch to the database.
37+
In the following example, an open connection to the [!INCLUDE[ssSampleDBnormal](../../includes/sssampledbnormal-md.md)] sample database is passed in to the function, the addBatch method is used to create the statements to be executed, and the executeBatch method is called to submit the batch to the database.
3838

3939
```java
4040
public static void executeBatchUpdate(Connection con) {

0 commit comments

Comments
 (0)