Skip to content

Commit ad7b0ef

Browse files
committed
[SCOPED] Update AdventureWorks references
1 parent b6adccd commit ad7b0ef

130 files changed

Lines changed: 394 additions & 378 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/azure-data-studio/build-and-publish-changes-to-table-using-sql-projects.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@ ms.topic: tutorial
1515

1616
With the help of the SQL Database Projects extension, SQL projects (including tables, views, stored procedures) can be edited without the need to be connected to a server instance in Azure Data Studio. The tutorial below will show how to:
1717

18-
1. Create a SQL Database Project of the ***AdventureWorks2019*** database.
18+
1. Create a SQL Database Project of the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database.
1919

20-
2. Make and deploy changes to a table in the ***AdventureWorks2019*** database using SQL Database Projects and confirming this change in the locally connected server instance where this database resides.
20+
2. Make and deploy changes to a table in the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database using SQL Database Projects and confirming this change in the locally connected server instance where this database resides.
2121

22-
> [!NOTE]
23-
> Please note that you will need to have the [AdventureWorks sample database](../samples/adventureworks-install-configure.md) downloaded and available in Azure Data Studio to follow along this tutorial. You will also need to have the SQL Database Projects extension installed. Refer to the [SQL Database Projects documentation](extensions/sql-database-project-extension.md) to learn more about this extension.
22+
[!INCLUDE [article-uses-adventureworks](../includes/article-uses-adventureworks.md)]
23+
24+
You will also need to have the SQL Database Projects extension installed. Refer to the [SQL Database Projects documentation](extensions/sql-database-project-extension.md) to learn more about this extension.
2425

2526
## Create a SQL Database Project
2627

27-
1. Navigate to the AdventureWorks database object located in the object explorer, right-click on it and select **Create Project from Database**:
28+
1. Navigate to the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database object located in the object explorer, right-click on it and select **Create Project from Database**:
2829

2930
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-show-how-to-create-project-from-database.png" alt-text="Screenshot of the object explorer in Azure Data Studio showing how to create a project from a database object.":::
3031

@@ -43,14 +44,14 @@ With the help of the SQL Database Projects extension, SQL projects (including ta
4344
Add another column named ***Citizenship*** of type nvarchar(50) and publish this change:
4445
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-publish-changes-to-sql-project.png" alt-text="Screenshot of Azure Data Studio showing how to publish changes SQL Database Projects.":::
4546

46-
2. From the file menu in the Database Projects, right-click on the project root node in which your project resides, and select **Build** to build this project. You should see a success or error message in the output terminal for a successful or failed build. When finished, right-click this same folder and select **Publish** to publish this project to the ***AdventureWorks2019*** database in your local host server connection.
47+
2. From the file menu in the Database Projects, right-click on the project root node in which your project resides, and select **Build** to build this project. You should see a success or error message in the output terminal for a successful or failed build. When finished, right-click this same folder and select **Publish** to publish this project to the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database in your local host server connection.
4748

4849
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-show-how-to-build-and-publish-changes-to-sql-project.png" alt-text="Screenshot of Azure Data Studio showing how to build and publish changes SQL Database Projects.":::
4950

5051
> [!NOTE]
5152
> Please note that you will need to be connected to your local host for this step. This can be done by clicking the plug icon in **Publish Project** dialog box.
5253
53-
3. Exit the SQL Database Projects view. Then, go to the object explorer in your server connection and navigate to the **Tables** folder of ***AdventureWorks2019*** database. Open the table design of the table you made changes to and confirm the change made. In this case, we added a new column, ***Citizenship*** to the ***Person.Person*** table:
54+
3. Exit the SQL Database Projects view. Then, go to the object explorer in your server connection and navigate to the **Tables** folder of [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database. Open the table design of the table you made changes to and confirm the change made. In this case, we added a new column, ***Citizenship*** to the ***Person.Person*** table:
5455

5556
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-confirm-changes-made-to-project-in-local-host.png" alt-text="Screenshot of Azure Data Studio showing the changes made to the table in the local host connection.":::
5657

docs/azure-data-studio/overview-of-the-table-designer-in-azure-data-studio.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,11 @@ The Table Designer consists of a window split into three separate panes. The fir
2929

3030
The SQL Server connection in which your database resides needs to be active in order to create tables. This is indicated by the green dot at the bottom right corner of the server connection icon in the object explorer (below). If red (this means the connection is inactive), select the server connection name in the object explorer to activate the connection. For a tutorial on connecting to SQL Server, check out the [Use Azure Data Studio to connect and query SQL Server tutorial](quickstart-sql-server.md) article.
3131

32-
> [!NOTE]
33-
> We will be using the "AdventureWorks2019" sample database in this tutorial. If you haven't already, please refer to [AdventureWorks sample databases](../samples/adventureworks-install-configure.md) to download this sample database.
32+
[!INCLUDE [article-uses-adventureworks](../includes/article-uses-adventureworks.md)]
3433

3534
#### Create a table
3635

37-
1. Right-click the **Tables** folder in the **AdventureWorks2019** database drop-down and select **New Table**:
36+
1. Right-click the **Tables** folder in the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database drop-down and select **New Table**:
3837

3938
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-traversing-through-object-explorer-to-create-new-table.png" alt-text="Screenshot of Table Designer showing how to traverse object explorer to create a new table.":::
4039

@@ -49,11 +48,11 @@ The SQL Server connection in which your database resides needs to be active in o
4948
> [!NOTE]
5049
> Pay attention to the changes in the read-only Transact-SQL code generated as changes are made to the default table.
5150
52-
5. Now that we have finished the design for our new table, we need to publish this change to the **AdventureWorks2019** database. To do this, select the "Publish" icon as seen below. Publishing can also be done by using the save command shortcut on your local device.
51+
5. Now that we have finished the design for our new table, we need to publish this change to the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database. To do this, select the "Publish" icon as seen below. Publishing can also be done by using the save command shortcut on your local device.
5352

5453
:::image type="content" source="media/table-designer-azure-data-studio/table-designer-show-publish-icon.png" alt-text="Screenshot of Table Designer highlighting publish icon.":::
5554

56-
Once this icon is selected, a preview dialog window appears showing you all the actions performed in creating a table. It also provides the option to publish the changes directly to the **AdventureWorks2019** database or generate the editable SQL script in a query editor that can be saved as a file locally or executed to publish this script to the database.
55+
Once this icon is selected, a preview dialog window appears showing you all the actions performed in creating a table. It also provides the option to publish the changes directly to the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] database or generate the editable SQL script in a query editor that can be saved as a file locally or executed to publish this script to the database.
5756

5857
:::image type="content" source="media/table-designer-azure-data-studio/save-dialog-for-table-designer.png" alt-text="Screenshot of Table Designer showing save dialog box.":::
5958

docs/big-data-cluster/cluster-troubleshooting-commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ kubectl cp master-0:/var/opt/mssql/log -c mssql-server -n mssql-cluster ~/tmp/sq
161161

162162
### <a id="copyinto"></a> Copy files into container
163163

164-
The following example copies the **AdventureWorks2016CTP3.bak** file from the local machine to the SQL Server master instance container (`mssql-server`) in the `master-0` pod. The file is copied to the `/tmp` directory in the container.
164+
The following example copies the [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)] file from the local machine to the SQL Server master instance container (`mssql-server`) in the `master-0` pod. The file is copied to the `/tmp` directory in the container.
165165

166166
```bash
167-
kubectl cp ~/Downloads/AdventureWorks2016CTP3.bak master-0:/tmp -c mssql-server -n mssql-cluster
167+
kubectl cp ~/Downloads/AdventureWorks2022.bak master-0:/tmp -c mssql-server -n mssql-cluster
168168
```
169169

170170
## <a id="forcedelete"></a> Force delete a pod

docs/big-data-cluster/data-ingestion-restore-database.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ kubectl cp <path to .bak file> master-0:/var/tmp/<.bak filename> -c mssql-server
3838
Example:
3939

4040
```bash
41-
kubectl cp ~/Downloads/AdventureWorks2016CTP3.bak master-0:/var/tmp/AdventureWorks2016CTP3.bak -c mssql-server -n clustertest
41+
kubectl cp ~/Downloads/AdventureWorks2022.bak master-0:/var/tmp/AdventureWorks2022.bak -c mssql-server -n clustertest
4242
```
4343

4444
Then, verify that the backup file was copied to the pod container.
@@ -70,27 +70,27 @@ RESTORE FILELISTONLY FROM DISK='/tmp/<db file name>.bak'
7070
Example:
7171

7272
```sql
73-
RESTORE FILELISTONLY FROM DISK='/tmp/AdventureWorks2016CTP3.bak'
73+
RESTORE FILELISTONLY FROM DISK='/tmp/AdventureWorks2022.bak'
7474
```
7575

7676
![Backup file list](media/restore-database/database-restore-file-list.png)
7777

7878
Now, restore the database. The following script is an example. Replace the names/paths as needed depending on your database backup.
7979

8080
```sql
81-
RESTORE DATABASE AdventureWorks2016CTP3
82-
FROM DISK='/tmp/AdventureWorks2016CTP3.bak'
83-
WITH MOVE 'AdventureWorks2016CTP3_Data' TO '/var/opt/mssql/data/AdventureWorks2016CTP3_Data.mdf',
84-
MOVE 'AdventureWorks2016CTP3_Log' TO '/var/opt/mssql/data/AdventureWorks2016CTP3_Log.ldf',
85-
MOVE 'AdventureWorks2016CTP3_mod' TO '/var/opt/mssql/data/AdventureWorks2016CTP3_mod'
81+
RESTORE DATABASE AdventureWorks2022
82+
FROM DISK='/tmp/AdventureWorks2022.bak'
83+
WITH MOVE 'AdventureWorks2022_Data' TO '/var/opt/mssql/data/AdventureWorks2022_Data.mdf',
84+
MOVE 'AdventureWorks2022_Log' TO '/var/opt/mssql/data/AdventureWorks2022_Log.ldf',
85+
MOVE 'AdventureWorks2022_mod' TO '/var/opt/mssql/data/AdventureWorks2022_mod'
8686
```
8787

8888
## Configure data pool and HDFS access
8989

9090
Now, for the SQL Server master instance to access data pools and HDFS, run the data pool and storage pool stored procedures. Run the following Transact-SQL scripts against your newly restored database:
9191

9292
```sql
93-
USE AdventureWorks2016CTP3
93+
USE AdventureWorks2022;
9494
GO
9595
-- Create the SqlDataPool data source:
9696
IF NOT EXISTS(SELECT * FROM sys.external_data_sources WHERE name = 'SqlDataPool')

docs/connect/ado-net/sql/modify-large-value-max-data.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ The `OPENROWSET` function includes the `BULK` rowset provider, which allows you
3737

3838
The `OPENROWSET BULK` option arguments provide significant control over where to begin and end reading data, how to deal with errors, and how data is interpreted. For example, you can specify that the data file be read as a single-row, single-column rowset of type `varbinary`, `varchar`, or `nvarchar`. For the complete syntax and options, see SQL Server Books Online.
3939

40-
The following example inserts a photo into the ProductPhoto table in the AdventureWorks sample database. When using the `BULK OPENROWSET` provider, you must supply the named list of columns even if you aren't inserting values into every column. The primary key in this case is defined as an identity column, and may be omitted from the column list. Note that you must also supply a correlation name at the end of the `OPENROWSET` statement, which in this case is ThumbnailPhoto. This correlates with the column in the `ProductPhoto` table into which the file is being loaded.
40+
The following example inserts a photo into the ProductPhoto table in the [!INCLUDE [sssampledbobject-md](../../../includes/sssampledbobject-md.md)] sample database. When using the `BULK OPENROWSET` provider, you must supply the named list of columns even if you aren't inserting values into every column. The primary key in this case is defined as an identity column, and may be omitted from the column list. Note that you must also supply a correlation name at the end of the `OPENROWSET` statement, which in this case is ThumbnailPhoto. This correlates with the column in the `ProductPhoto` table into which the file is being loaded.
4141

4242
```sql
4343
INSERT Production.ProductPhoto (
@@ -77,7 +77,7 @@ The WRITE method specifies that a section of the value of the *column_name* will
7777
This Transact-SQL example updates a partial value in DocumentSummary, an `nvarchar(max)` column in the Document table in the AdventureWorks database. The word 'components' is replaced by the word 'features' by specifying the replacement word, the beginning location (offset) of the word to be replaced in the existing data, and the number of characters to be replaced (length). The example includes SELECT statements before and after the UPDATE statement to compare results.
7878

7979
```sql
80-
USE AdventureWorks;
80+
USE AdventureWorks2022;
8181
GO
8282
--View the existing value.
8383
SELECT DocumentSummary
@@ -179,7 +179,7 @@ The following code retrieves the name and the `LargePhoto` object from the `Prod
179179
[!code-csharp[DataWorks SqlBytes_Stream#1](~/../sqlclient/doc/samples/SqlBytes_Stream.cs#1)]
180180

181181
## Using large value type parameters
182-
Large value types can be used in <xref:Microsoft.Data.SqlClient.SqlParameter> objects the same way you use smaller value types in <xref:Microsoft.Data.SqlClient.SqlParameter> objects. You can retrieve large value types as <xref:Microsoft.Data.SqlClient.SqlParameter> values, as shown in the following example. The code assumes that the following GetDocumentSummary stored procedure exists in the AdventureWorks sample database. The stored procedure takes an input parameter named @DocumentID and returns the contents of the DocumentSummary column in the @DocumentSummary output parameter.
182+
Large value types can be used in <xref:Microsoft.Data.SqlClient.SqlParameter> objects the same way you use smaller value types in <xref:Microsoft.Data.SqlClient.SqlParameter> objects. You can retrieve large value types as <xref:Microsoft.Data.SqlClient.SqlParameter> values, as shown in the following example. The code assumes that the following GetDocumentSummary stored procedure exists in the [!INCLUDE [sssampledbobject-md](../../../includes/sssampledbobject-md.md)] sample database. The stored procedure takes an input parameter named @DocumentID and returns the contents of the DocumentSummary column in the @DocumentSummary output parameter.
183183

184184
```sql
185185
CREATE PROCEDURE GetDocumentSummary

docs/connect/oledb/ole-db-how-to/bulk-copy-data-using-irowsetfastload-ole-db.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ helpviewer_keywords:
2424

2525
A complete sample is available that illustrates the use of **IRowsetFastLoad** for bulk copying of the records into a table. In this sample, 10 records are added to the table **IRFLTable**. You need to create the table **IRFLTable** in the database.
2626

27-
This sample requires the AdventureWorks sample database, which you can download from the [Microsoft SQL Server Samples and Community Projects](https://go.microsoft.com/fwlink/?LinkID=85384) home page.
27+
[!INCLUDE [article-uses-adventureworks](../../../includes/article-uses-adventureworks.md)]
2828

2929
> [!IMPORTANT]
3030
> When possible, use Windows Authentication. If Windows Authentication is not available, prompt users to enter their credentials at run time. Avoid storing credentials in a file. If you must persist credentials, you should encrypt them with the [Win32 crypto API](/windows/win32/seccrypto/cryptography-reference).
@@ -55,7 +55,7 @@ helpviewer_keywords:
5555
Execute the third ( [!INCLUDE[tsql](../../../includes/tsql-md.md)]) code listing to delete the table used by the application.
5656

5757
```
58-
USE AdventureWorks
58+
USE AdventureWorks2022;
5959
GO
6060
6161
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'IRFLTable')
@@ -416,7 +416,7 @@ void SetupOption (DBPROPID PropID, WCHAR *wszVal, DBPROP * pDBProp ) {
416416
```
417417

418418
```
419-
USE AdventureWorks
419+
USE AdventureWorks2022;
420420
GO
421421
422422
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'IRFLTable')

docs/connect/oledb/ole-db-how-to/enumerate-ole-db-data-sources-ole-db.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ helpviewer_keywords:
2323

2424
When the server is turned off or on, it can take few minutes to update the information in these domains.
2525

26-
This sample requires the AdventureWorks sample database, which you can download from the [Microsoft SQL Server Samples and Community Projects](https://go.microsoft.com/fwlink/?LinkID=85384) home page.
26+
[!INCLUDE [article-uses-adventureworks](../../../includes/article-uses-adventureworks.md)]
2727

2828
> [!IMPORTANT]
2929
> When possible, use Windows Authentication. If Windows Authentication is not available, prompt users to enter their credentials at run time. Avoid storing credentials in a file. If you must persist credentials, you should encrypt them with the [Win32 crypto API](/windows/win32/seccrypto/cryptography-reference).

docs/connect/oledb/ole-db-how-to/fetch-columns-using-irow-getcolumns-ole-db.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ helpviewer_keywords:
4545

4646
In the DBCOLUMNACCESS structure, if pData is NULL and cbMaxLen is 0, the call to IRow->GetColumns returns only the actual column length. In this case IRow->GetColumns can be called again on the same column to retrieve the actual data. This sample is not supported on IA64.
4747

48-
This sample requires the AdventureWorks sample database, which you can download from the [Microsoft SQL Server Samples and Community Projects](https://go.microsoft.com/fwlink/?LinkID=85384) home page.
48+
[!INCLUDE [article-uses-adventureworks](../../../includes/article-uses-adventureworks.md)]
4949

5050
The first ([!INCLUDE[tsql](../../../includes/tsql-md.md)]) code listing creates a table used by the sample.
5151

@@ -54,7 +54,7 @@ helpviewer_keywords:
5454
The third ([!INCLUDE[tsql](../../../includes/tsql-md.md)]) code listing deletes the table used by the sample.
5555

5656
```
57-
use AdventureWorks
57+
use AdventureWorks2022;
5858
go
5959
6060
if exists (select name from sysobjects where name = 'MyTable')
@@ -503,7 +503,7 @@ int InitializeAndEstablishConnection() {
503503
```
504504

505505
```
506-
use AdventureWorks
506+
use AdventureWorks2022;
507507
go
508508
509509
if exists (select name from sysobjects where name = 'MyTable')

docs/connect/oledb/ole-db-how-to/fetch-columns-using-irow-getcolumns-or-irow-open-and-isequentialstream.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ helpviewer_keywords:
3939
## Example
4040
This example shows how to fetch a single row using IRow. In this example one column at a time is retrieved from the row. This example illustrate the use of IRow::Open() as well as IRow::GetColumns(). To read the column data, the example uses ISequentialStream::Read.
4141

42-
This sample requires the AdventureWorks sample database, which you can download from the [Microsoft SQL Server Samples and Community Projects](https://go.microsoft.com/fwlink/?LinkID=85384) home page.
42+
[!INCLUDE [article-uses-adventureworks](../../../includes/article-uses-adventureworks.md)]
4343

4444
The first ( [!INCLUDE[tsql](../../../includes/tsql-md.md)]) code listing creates a table used by the sample.
4545

@@ -48,7 +48,7 @@ helpviewer_keywords:
4848
The third ( [!INCLUDE[tsql](../../../includes/tsql-md.md)]) code listing deletes the table used by the sample.
4949

5050
```
51-
USE AdventureWorks
51+
USE AdventureWorks2022;
5252
GO
5353
5454
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'MyTable')
@@ -656,7 +656,7 @@ int InitializeAndEstablishConnection() {
656656
```
657657

658658
```
659-
USE AdventureWorks
659+
USE AdventureWorks2022;
660660
GO
661661
662662
IF EXISTS (SELECT name FROM sysobjects WHERE name = 'MyTable')

0 commit comments

Comments
 (0)