You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Copy file name to clipboardExpand all lines: docs/samples/adventureworks-install-configure.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,21 +53,6 @@ Additional files can be found directly on GitHub:
53
53
54
54
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).
55
55
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
-
71
56
# [SQL Server Management Studio (SSMS)](#tab/ssms)
72
57
73
58
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:
95
80
96
81
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).
97
82
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
+
98
98
# [Azure Data Studio](#tab/data-studio)
99
99
100
100
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
187
187
188
188
[Tutorials for SQL Server database engine](../relational-databases/database-engine-tutorials.md)
189
189
[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