Skip to content

Commit 634c85e

Browse files
authored
Update adventureworks-install-configure.md
moved ssms since it had higher click count; but maybe because it's just the second tab, will be interesting to see if t-sql gets higher clickrate after this
1 parent c6b50e7 commit 634c85e

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

docs/samples/adventureworks-install-configure.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,6 @@ Additional files can be found directly on GitHub:
5353

5454
You can use the `.bak` file to restore your sample database to your SQL Server instance. You can do so using the [RESTORE (Transact-SQL)](../t-sql/statements/restore-statements-transact-sql.md) command, or using the graphical interface (GUI) in [SQL Server Management Studio](../ssms/download-sql-server-management-studio-ssms.md) or [Azure Data Studio](../azure-data-studio/download-azure-data-studio.md).
5555

56-
# [Transact-SQL (T-SQL)](#tab/tsql)
57-
58-
You can restore your sample database using Transact-SQL (T-SQL). An example to restore AdventureWorks2019 is provided below, but the database name and installation file path may vary depending on your environment.
59-
60-
To restore AdventureWorks2019, modify values as appropriate to your environment and then run the following Transact-SQL (T-SQL) command:
61-
62-
```sql
63-
USE [master]
64-
RESTORE DATABASE [AdventureWorks2019]
65-
FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\AdventureWorks2019.bak'
66-
WITH FILE = 1, NOUNLOAD, STATS = 5
67-
GO
68-
69-
```
70-
7156
# [SQL Server Management Studio (SSMS)](#tab/ssms)
7257

7358
If you're not familiar using SQL Server Management Studio (SSMS), you can see [connect & query](../ssms/tutorials/connect-query-sql-server.md) to get started.
@@ -95,6 +80,21 @@ To restore your database in SQL Server Management Studio, follow these steps:
9580

9681
For more information on restoring a SQL Server database, see [Restore a database backup using SSMS](../relational-databases/backup-restore/restore-a-database-backup-using-ssms.md).
9782

83+
# [Transact-SQL (T-SQL)](#tab/tsql)
84+
85+
You can restore your sample database using Transact-SQL (T-SQL). An example to restore AdventureWorks2019 is provided below, but the database name and installation file path may vary depending on your environment.
86+
87+
To restore AdventureWorks2019, modify values as appropriate to your environment and then run the following Transact-SQL (T-SQL) command:
88+
89+
```sql
90+
USE [master]
91+
RESTORE DATABASE [AdventureWorks2019]
92+
FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Backup\AdventureWorks2019.bak'
93+
WITH FILE = 1, NOUNLOAD, STATS = 5
94+
GO
95+
96+
```
97+
9898
# [Azure Data Studio](#tab/data-studio)
9999

100100
If you're not familiar using [Azure Data Studio Studio](../azure-data-studio/download-azure-data-studio.md), you can see [connect & query](../azure-data-studio/quickstart-sql-server.md) to get started
@@ -187,4 +187,4 @@ Once you've restored your sample database, using the following tutorials to get
187187

188188
[Tutorials for SQL Server database engine](../relational-databases/database-engine-tutorials.md)
189189
[Connect and query with SQL Server Management Studio (SSMS)](../ssms/tutorials/connect-query-sql-server.md)
190-
[Connect and query with Azure Data Studio](../ssms/tutorials/connect-query-sql-server.md)
190+
[Connect and query with Azure Data Studio](../ssms/tutorials/connect-query-sql-server.md)

0 commit comments

Comments
 (0)