Files
sql-server-samples/samples/databases/adventure-works

AdventureWorks Readme

The AdventureWorks databases are sample databases that were originally published for SQL Server 2008. There are two core sample databases. AdventureWorks is the OLTP sample, and AdventureWorksDW is the data warehouse sample. For some versions of SQL Server, there are additional releases that are intended as one-time only.

To install the AdventureWorks databases with the database compatibility level of your SQL Server instance, you can do use either install from a backup file or a script.

Install from a backup

For the complete set of downloads, see these releases:

Install from a script

To install AdventureWorks, copy the data files and scripts for AdventureWorks to your local client. Open instawdb.sql in SQL Server Management Studio and follow the instructions at the top of the file.

To install AdventureWorksDW, copy the data files and scripts for AdventureWorksDW to your local client. Open instawdbdw.sql in SQL Server Management Studio and follow the instructions at the top of the file.