Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
Azure Synapse Analytics
Analytics Platform System (PDW)
This article contains installation and configuration instructions for the WideWorldImportersDW
database.
Download the sample WideWorldImportersDW
database backup/BACPAC that corresponds to your edition of SQL Server or Azure SQL Database.
The latest release of the sample is available from wide-world-importers-release.
Source code to recreate the sample database is available from wide-world-importers-source. Data population is based on ETL from the OLTP database (WideWorldImporters
).
You can use SSMS to restore a backup to SQL Server, or import a BACPAC into a new Azure SQL database.
Restore a backup to a SQL Server instance using SSMS:
- Open SSMS and connect to the target SQL Server instance.
- Right-click on the Databases node, and select Restore Database.
- Select Device and select the ellipses button (...).
- 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.
- 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.
- Select OK. This step initiates the database restore. After it completes, you will have the database
WideWorldImporters
installed on your SQL Server instance.
Import a BACPAC into a new Azure SQL database, using SSMS:
- (optional) If you don't yet have a SQL Server in Azure, navigate to the Azure portal and create a new SQL database. In the process of creating a database, you create a server. Make note of the server.
- Open SSMS and connect to your server in Azure.
- Right-click on the Databases node, and select Import Data-Tier Application.
- In the Import Settings, select Import from local disk and select the BACPAC of the sample database from your file system.
- Under Database Settings change the database name to
WideWorldImportersDW
and select the target edition and service objective to use.
- 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.
Applies to: SQL Server 2016 (13.x) and later versions, Developer and Enterprise edition
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 SQL Server; you need to select it during SQL Server Setup. Therefore, a post-installation step is required.
In SSMS, connect to the WideWorldImportersDW
database and open a new query window.
Run the following Transact-SQL command to enable the use of PolyBase in the database:
EXECUTE [Application].[Configuration_ApplyPolyBase];