|
1 | 1 | --- |
2 | | -title: "Install & configure DW WideWorldImporters sample database" |
| 2 | +title: "Install & configure WideWorldImportersDW sample database" |
3 | 3 | description: Follow these instructions to download, install, and configure the WideWorldImportersDW sample database with SQL Server Management Studio. |
4 | 4 | author: MashaMSFT |
5 | 5 | ms.author: mathoma |
6 | | -ms.date: "08/04/2018" |
| 6 | +ms.reviewer: randolphwest |
| 7 | +ms.date: 08/01/2023 |
7 | 8 | ms.service: sql |
8 | 9 | ms.subservice: samples |
9 | 10 | ms.topic: conceptual |
10 | 11 | ms.custom: intro-installation |
11 | | -monikerRange: ">=sql-server-2016||>=sql-server-linux-2017||=azure-sqldw-latest||>=aps-pdw-2016||=azuresqldb-mi-current" |
| 12 | +monikerRange: ">=sql-server-2016 || >=sql-server-linux-2017 || =azure-sqldw-latest || >=aps-pdw-2016 || =azuresqldb-mi-current" |
12 | 13 | --- |
13 | | -# WideWorldImportersDW Installation and configuration |
14 | | -[!INCLUDE[appliesto-ss-xxxx-asdw-pdw-md](../includes/appliesto-ss-xxxx-asdw-pdw-md.md)] |
15 | | -Installation and configuration instructions for the WideWorldImportersDW database. |
| 14 | +# Install and configure WideWorldImportersDW sample database |
16 | 15 |
|
17 | | -- [SQL Server 2016](https://www.microsoft.com/evalcenter/evaluate-sql-server-2016) (or later) or [Azure SQL Database](https://azure.microsoft.com/services/sql-database/). To use the Full version of the sample, use SQL Server Evaluation/Developer/Enterprise Edition. |
18 | | -- [SQL Server Management Studio](../ssms/download-sql-server-management-studio-ssms.md). For the best results use the June 2016 release or later. |
| 16 | +[!INCLUDE [sql-asdb-asdbmi-asa-pdw](../includes/applies-to-version/sql-asdb-asdbmi-asa-pdw.md)] |
19 | 17 |
|
20 | | -## Download |
| 18 | +This article contains installation and configuration instructions for the `WideWorldImportersDW` database. |
| 19 | + |
| 20 | +## Prerequisites |
| 21 | + |
| 22 | +- [SQL Server 2016](https://www.microsoft.com/evalcenter/evaluate-sql-server-2016) with Service Pack 1 (and later versions), or [!INCLUDE [ssazure-sqldb](../includes/ssazure-sqldb.md)]. To use the full version of the sample, use [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] Developer or Enterprise editions. |
21 | 23 |
|
22 | | -The latest release of the sample: |
| 24 | +- [SQL Server Management Studio](../ssms/download-sql-server-management-studio-ssms.md) (SSMS). |
23 | 25 |
|
24 | | -[wide-world-importers-release](https://go.microsoft.com/fwlink/?LinkID=800630) |
| 26 | +## Download |
25 | 27 |
|
26 | | -Download the sample WideWorldImportersDW database backup/bacpac that corresponds to your edition of SQL Server or Azure SQL Database. |
| 28 | +Download the sample `WideWorldImportersDW` database backup/BACPAC that corresponds to your edition of [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] or [!INCLUDE [ssazure-sqldb](../includes/ssazure-sqldb.md)]. |
27 | 29 |
|
28 | | -Source code to recreate the sample database is available from the following location. Note that data population is based on ETL from the OLTP database (WideWorldImporters): |
| 30 | +The latest release of the sample is available from [wide-world-importers-release](https://go.microsoft.com/fwlink/?LinkID=800630). |
29 | 31 |
|
30 | | -[wide-world-importers-source](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/wide-world-importers/sample-scripts) |
| 32 | +Source code to recreate the sample database is available from [wide-world-importers-source](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/wide-world-importers/sample-scripts). Data population is based on ETL from the OLTP database (`WideWorldImporters`). |
31 | 33 |
|
32 | 34 | ## Install |
33 | 35 |
|
| 36 | +You can use SSMS to restore a backup to [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)], or import a BACPAC into a new Azure SQL database. |
34 | 37 |
|
35 | | -### SQL Server |
| 38 | +### [SQL Server](#tab/sql-server) |
36 | 39 |
|
37 | | -To restore a backup to a SQL Server instance, you can use Management Studio. |
| 40 | +Restore a backup to a [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance using SSMS: |
38 | 41 |
|
39 | | -1. Open SQL Server Management Studio and connect to the target SQL Server instance. |
40 | | -2. Right-click on the **Databases** node, and select **Restore Database**. |
41 | | -3. Select **Device** and click on the button **...** |
42 | | -4. In the dialog **Select backup devices**, click **Add**, navigate to the database backup in the filesystem of the server, and select the backup. Click **OK**. |
43 | | -5. If needed, change the target location for the data and log files, in the **Files** pane. Note that it is best practice to place data and log files on different drives. |
44 | | -6. Click **OK**. This will initiate the database restore. After it completes, you will have the database WideWorldImporters installed on your SQL Server instance. |
| 42 | +1. Open SSMS and connect to the target [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance. |
| 43 | +1. Right-click on the **Databases** node, and select **Restore Database**. |
| 44 | +1. Select **Device** and select the ellipses button (**...**). |
| 45 | +1. In the dialog **Select backup devices**, select **Add**, navigate to the database backup in the filesystem of the server, and select the backup. Select **OK**. |
| 46 | +1. If needed, change the target location for the data and log files, in the **Files** pane. It is best practice to place data and log files on different drives. |
| 47 | +1. Select **OK**. This step initiates the database restore. After it completes, you will have the database `WideWorldImporters` installed on your [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] instance. |
45 | 48 |
|
46 | | -### Azure SQL Database |
| 49 | +### [Azure SQL Database](#tab/sql-database) |
47 | 50 |
|
48 | | -To import a bacpac into a new SQL Database, you can use Management Studio. |
| 51 | +Import a BACPAC into a new Azure SQL database, using SSMS: |
49 | 52 |
|
50 | | -1. (optional) If you do not yet have a SQL Server in Azure, navigate to the [Azure portal](https://portal.azure.com/) and create a new SQL Database. In the process of create a database, you will create a server. Make note of the server. |
| 53 | +1. *(optional)* If you don't yet have a [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] in Azure, navigate to the [Azure portal](https://portal.azure.com/) and create a new SQL database. In the process of creating a database, you create a server. Make note of the server. |
51 | 54 | - See [this quickstart](/azure/azure-sql/database/single-database-create-quickstart) to create a database in minutes. |
52 | | -2. Open SQL Server Management Studio and connect to your server in Azure. |
53 | | -3. Right-click on the **Databases** node, and select **Import Data-Tier Application**. |
54 | | -4. In the **Import Settings** select **Import from local disk** and select the bacpac of the sample database from your file system. |
55 | | -5. Under **Database Settings** change the database name to *WideWorldImportersDW* and select the target edition and service objective to use. |
56 | | -6. Click **Next** and **Finish** to kick off deployment. It will take a few minutes to complete. When specifying a service objective lower than S2 it may take longer. |
| 55 | +1. Open SSMS and connect to your server in Azure. |
| 56 | +1. Right-click on the **Databases** node, and select **Import Data-Tier Application**. |
| 57 | +1. In the **Import Settings**, select **Import from local disk** and select the BACPAC of the sample database from your file system. |
| 58 | +1. Under **Database Settings** change the database name to `WideWorldImportersDW` and select the target edition and service objective to use. |
| 59 | +1. Select **Next** and **Finish** to kick off deployment. It takes a few minutes to complete. When you specify a service objective lower than S2, it may take longer. |
| 60 | + |
| 61 | +--- |
57 | 62 |
|
58 | | -## Configuration |
| 63 | +## Configure PolyBase |
59 | 64 |
|
60 | | -Applies to [!INCLUDE[sssql16-md](../includes/sssql16-md.md)] (and later) Developer/Evaluation/Enterprise Edition |
| 65 | +**Applies to:** [!INCLUDE [sssql16-md](../includes/sssql16-md.md)] and later versions, Developer and Enterprise edition |
61 | 66 |
|
62 | | -The sample database can make use of PolyBase to query files in Hadoop or Azure Blob Storage. However, that feature is not installed by default with SQL Server - you need to select it during SQL Server setup. Therefore, a post-installation step is required. |
| 67 | +The sample database can make use of PolyBase to query files in Hadoop or Azure Blob Storage. However, that feature isn't installed by default with [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)]; you need to select it during [!INCLUDE [ssnoversion-md](../includes/ssnoversion-md.md)] Setup. Therefore, a post-installation step is required. |
63 | 68 |
|
64 | | -1. In SQL Server Management Studio, connect to the WideWorldImportersDW database and open a new query window. |
65 | | -2. Run the following T-SQL command to enable the use of PolyBase in the database: |
| 69 | +1. In SSMS, connect to the `WideWorldImportersDW` database and open a new query window. |
| 70 | +1. Run the following Transact-SQL command to enable the use of PolyBase in the database: |
66 | 71 |
|
67 | | - ```tsql |
| 72 | + ```sql |
68 | 73 | EXECUTE [Application].[Configuration_ApplyPolyBase]; |
69 | 74 | ``` |
0 commit comments