Professional Documents
Culture Documents
Readme For Adventure Works 2014 Sample Databases
Readme For Adventure Works 2014 Sample Databases
Databases
Install the Adventure Works 2014 OLTP database from a script
The Adventure Works database can be created by running the instawdb.sql DDL script contained in the
Adventure Works 2014 OLTP Script.zip file. The instawdb.sql script depends on two path environment
variables: SqlSamplesDatabasePath and SqlSamplesSourceDataPath. The SqlSamplesDatabasePath
environment variable is set to the default Microsoft® SQL Server 2014 path. The
SqlSamplesSourceDataPath environment variable is set to the default script CSV data path. An invalid
SqlSamplesSourceDataPath path generates an error that the bulk load steps failed because the .csv files
could not be found. The DDL script must be run in SQLCMD mode inside SQL Server Management Studio.
The Adventure Works 2014 OLTP database can be installed by restoring a database backup.
USE [master]
As an alternative to steps 5 and 6, you can restore the database using the SQL Server Management
Studio user interface. For more detailed information, see Restore a Database Backup (SQL Server
Management Studio) .
The Adventure Works database can be created by running the instawdbdw.sql DDL script contained in the
Adventure Works 2014 Warehouse Script.zip . The instawdbdw.sql script depends on two path
environment variables: SqlSamplesDatabasePath and SqlSamplesSourceDataPath. The
SqlSamplesDatabasePath environment variable is set to the default Microsoft® SQL Server 2014 path.
The SqlSamplesSourceDataPath environment variable is set to the default script CSV data path. An
invalid SqlSamplesSourceDataPath path generates an error that the bulk load steps failed because the
.csv files could not be found. The DDL script must be run in SQLCMD mode inside SQL Server
Management Studio.
The Adventure Works 2014 Data Warehouse database can be installed by restoring a database backup.
USE [master]
As an alternative to steps 5 and 6, you can restore the database using the SQL Server Management
Studio user interface. For more detailed information, see Restore a Database Backup (SQL Server
Management Studio) .