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
@@ -49,25 +50,25 @@ If you're not sure what you need, start with the OLTP version that matches your
49
50
50
51
You can find additional files on GitHub:
51
52
52
-
-[SQL Server 2014 - 2022](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks)
53
+
-[SQL Server 2014 - 2025](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks)
53
54
-[SQL Server 2012](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks2012)
54
55
-[SQL Server 2008 and 2008 R2](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks2008r2)
55
56
56
57
## Restore to SQL Server
57
58
58
59
You can use the `.bak` file to restore your sample database to your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance. You can do so using the [RESTORE](../t-sql/statements/restore-statements-transact-sql.md) T-SQL command, or using the graphical interface (GUI) in [SSMS](/ssms/sql-server-management-studio-ssms), the [MSSQL extension](https://aka.ms/mssql-marketplace) for [Visual Studio Code](https://code.visualstudio.com/docs), or any T-SQL query tool.
59
60
60
-
# [SSMS](#tab/ssms)
61
+
###[SSMS](#tab/ssms)
61
62
62
-
If you're not familiar with using SSMS, you can review [Connect and query using SSMS](../ssms/quickstarts/ssms-connect-query-sql-server.md) to get started.
63
+
If you're not familiar with using SSMS, you can review [Connect and query using SSMS](/ssms/quickstarts/ssms-connect-query-sql-server) to get started.
63
64
64
65
To restore your database in SSMS, follow these steps:
65
66
66
67
1. Download the appropriate `.bak` file from one of links provided in the [Download backup files](#download-backup-files) section of this article.
67
68
1. Move the `.bak` file to your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] backup location. This location varies depending on your installation location, instance name, and version of [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)]. For example, the default location for a default instance of [!INCLUDE [sssql22-md](../includes/sssql22-md.md)] is:
1. Open SSMS and connect to your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance.
@@ -85,7 +86,7 @@ To restore your database in SSMS, follow these steps:
85
86
86
87
For more information on restoring a [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] database, see [Restore a database backup using SSMS](../relational-databases/backup-restore/restore-a-database-backup-using-ssms.md).
87
88
88
-
# [Transact-SQL (T-SQL)](#tab/tsql)
89
+
###[Transact-SQL (T-SQL)](#tab/tsql)
89
90
90
91
You can restore your sample database by using T-SQL. The following example restores [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)], but the database name and installation file path can vary depending on your environment.
91
92
@@ -94,8 +95,8 @@ To restore [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)]
94
95
```sql
95
96
USE [master];
96
97
GO
97
-
RESTORE DATABASE [AdventureWorks2022]
98
-
FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL16.MSSQLSERVER\MSSQL\Backup\AdventureWorks2022.bak'
98
+
RESTORE DATABASE [AdventureWorks2025]
99
+
FROM DISK = N'C:\Program Files\Microsoft SQL Server\MSSQL17.MSSQLSERVER\MSSQL\Backup\AdventureWorks2025.bak'
99
100
WITH
100
101
FILE =1,
101
102
NOUNLOAD,
@@ -108,11 +109,11 @@ To restore [!INCLUDE [sssampledbobject-md](../includes/sssampledbobject-md.md)]
108
109
```sql
109
110
USE [master];
110
111
GO
111
-
RESTORE DATABASE [AdventureWorks2022]
112
-
FROM DISK ='/var/opt/mssql/backup/AdventureWorks2022.bak'
112
+
RESTORE DATABASE [AdventureWorks2025]
113
+
FROM DISK ='/var/opt/mssql/backup/AdventureWorks2025.bak'
113
114
WITH
114
-
MOVE 'AdventureWorks2022' TO '/var/opt/mssql/data/AdventureWorks2022_Data.mdf',
115
-
MOVE 'AdventureWorks2022_log' TO '/var/opt/mssql/data/AdventureWorks2022_log.ldf',
115
+
MOVE 'AdventureWorks2025' TO '/var/opt/mssql/data/AdventureWorks2025_Data.mdf',
116
+
MOVE 'AdventureWorks2025_log' TO '/var/opt/mssql/data/AdventureWorks2025_log.ldf',
116
117
FILE =1,
117
118
NOUNLOAD,
118
119
STATS =5;
@@ -125,15 +126,15 @@ GO
125
126
126
127
You have two options for viewing sample SQL Database data. You can use a sample when you create a new database, or you can deploy a database from [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] directly to Azure by using SSMS.
127
128
128
-
To get sample data for SQL Managed Instance instead, see [Restore World Wide Importers to SQL Managed Instance](/azure/azure-sql/managed-instance/restore-sample-database-quickstart).
129
+
To get sample data for SQL Managed Instance instead, see [Quickstart: Restore a database to Azure SQL Managed Instance with SSMS](/azure/azure-sql/managed-instance/restore-sample-database-quickstart).
129
130
130
131
### Deploy a new sample database
131
132
132
133
When you create a new database in SQL Database, you can create a blank database, restore from a backup, or select sample data to populate your new database.
133
134
134
135
Follow these steps to deploy a new sample `AdventureWorksLT` database in Azure SQL Database:
135
136
136
-
1. Go to [Azure SQL hub at aka.ms/azuresqlhub](https://aka.ms/azuresqlhub).
137
+
1. Go to [Azure SQL hub at aka.ms/azuresqlhub](https://aka.ms/azuresqlhub).
137
138
1. In the pane for **Azure SQL Database**, select **Show options**.
138
139
1. In the **Azure SQL Database options** window, select **Create SQL Database**.
139
140
@@ -182,5 +183,5 @@ You can find additional information about using the scripts on [GitHub](https://
0 commit comments