Adventureworks2014 Download

The AdventureWorks database is a fictitious company database that has existed since SQL Server 2005 as a means to show new functionality in each new version released. Because the Books Online TSQL samples leverage this sample database, AdventureWorks has become a vital aspect of learning new features/constructs within SQL Server. What started as a big improvement over the Northwind and Pubs sample databases has evolved into numerous specialized off-shoots highlighting different aspects of the product. There are now multiple versions of AdventureWorks databases for each version of the product, including many updates corresponding to service pack releases. The end result is that it is extremely confusing to find the 'correct' version of AdventureWorks that you are searching for. I'll lovingly refer to this as AdventureWorks sprawl and try to lower the barrier to entry for getting started working with the AdventureWorks sample database.

Pre-SQL Server 2005:

AdventureWorks2014 is a sample database (collection of tables) designed by Microsoft for educational and POC purpose. Adventure Works is a fictitious company on which the data model or database is created. Hello all, I have the AdventureWorks Sample databases for SQL Server 2016 CTP3. But i want for the actual latest SQL Server 2016 (general availability) that was released earlier this month on June 1st 2016.

AdventureWorks did not exist before SQL Server 2005. In this time, the sample databases Northwind and Pubs were included on the media along with the product and could be installed during the setup process. You can download the Northwind and Pubs sample databases for SQL Server 2000 here.

SQL Server 2005:

In the SQL Server 2005 timeframe, the AdventureWorks sample DB was introduced and also included on the media along with the product. You can install the samples during setup or download them from the following location:

Adventureworks2014

The installers for SQL Server 2005 supply you with the .mdf/.ldf files, but you need to manually attach them to your instance for use. You will see a couple different AdventureWorks databases, each with a slightly different focus. For the majority of people downloading sample databases to learn T-SQL, refer to Books Online examples, etc., the AdventureWorksDB is the first one to start with.

SQL Server 2008:

Download

Beginning with SQL Server 2008, the sample databases are no longer included with the media and must be downloaded and attached as a separate step. The SQL Server 2008 sample databases are packaged slightly different than any other version, where they include a single .exe file that will allow you to install all different versions of the SQL Server 2008 sample databases. They also include a .zip file containing a single .mdf and .ldf for attaching the basic AdventureWorksLT database. I'd suggest unzipping this file and attaching the .mdf/.ldf to get started and using the .exe if you want to dig further into more complex examples.

Step-by-step instructions for using the .exe to install all sample DBs is here.

SQL Server 2008 R2:

Beginning with the 2008 R2 sample databases, a new version was introduced that supported filestream. If you are familiar with SQL Server and trying to learn filestream specifically, you'll want to download the version containing filestream sample schema/code. For the huge bulk of users trying to leverage the sample database to learn the basics and extend into new areas, you will want to download the version without filestream support from the link below:

Download

In this link, you will see numerous versions of the database. To get started quickly, I'd suggest downloading AdventureWorks2008R2-Full Database Backup.zip, unzipping the .bak file to your backup location, and restoring the database through SSMS. The other versions all have different intentions for learning, but again I'd suggest starting with the basic version first before advancing to the other versions.

SQL Server 2012:

Through the evolution of the AdventureWorks DBs over the years, the site hosting the sample databases now includes 13 different links/flavors/versions of the sample database for SQL Server 2012 and can be found here:

As with my suggestion for 2008 R2, I would suggest that you download AdventureWorks2012-Full Database Backup.zip, unzip the .bak file to your backup location, and restore the database through SSMS to get started quickly.

SQL Server 2014:

Following the same pattern as with 2008 R2 and 2012, you can download Adventure Works 2014 Full Database Backup.zip, unzip the .bak file to your backup location, and restore the database through SSMS to get started quickly.

In summary, the AdventureWorks sample databases are outstanding learning tools for understanding examples from Books Online, trying out new constructs, and exploring entire new areas of SQL Server, but wading through the numerous versions and editions can be quite confusing. If you have questions/comments, let me know.

Hope this helps,
Sam Lester (MSFT)

-->

This walkthrough shows how to install the AdventureWorks2008 sample database on your local machine, which is a prerequisite for other walkthroughs provided in the ReportViewer documentation. AdventureWorks2008 is not automatically installed with SQL Server or SQL Server Express, but can be downloaded from Codeplex. You can use the instructions provided in this walkthrough to download, install, and configure a connection to the AdventureWorks2008 database.

Note

To successfully install the AdventureWorks2008 database, you must have installed the full-text search feature and enable FILESTREAM for your SQL Server 2008 R2 instance. If you want to use SQL Server 2008 R2 Express, be sure to install the SQL Server 2008 R2 Express with Advanced Services edition with the full-text search feature and with FILESTREAM enabled. You can download SQL Server 2008 R2 Express with Advanced Services from the Microsoft Download Center.

To learn more about using the AdventureWorks2008 sample database, you can search for 'AdventureWorks Sample OLTP Database' in SQL Server Books Online.

Prerequisites

You must have a SQL Server instance installed on your local machine for which you have permissions. If you installed SQL Server 2008 R2 Express with Advanced Services, the default instance name is (local)sqlexpress.

The following steps describe how to download, save, attach, and configure the AdventureWorks2008 database.

To install AdventureWorks 2008 sample database

  1. Navigate to this Codeplex download page, and then click the Downloads tab.

  2. Download and run the latest version of the SQL Server AdventureWorks2008 database.

  3. Follow the prompts of the installation wizard and choose the SQL Server instance to install the AdventureWorks OLTP 2008 sample database.

    When the installation is complete, the current user will be added as an owner to the AdventureWorks2008 database and will have read access to the database. This allows the Web pages in the walkthrough projects to access the database because the ASP.NET development server that you will use to run the walkthrough projects executes the Web pages in the security context of the current user. For more information on the ASP.NET development server, see Web Servers in Visual Studio for ASP.NET Web Projects.

    Note

    If you create a Web application in a Web site in IIS, the default security context of the ASP.NET process that runs the Web pages depends on the IIS version. For more information, see Accessing SQL Server from a Web Application.

Next Steps

You have now installed and configured the AdventureWorks2008 database and can proceed to the ReportViewer walkthroughs that use it as a data source: Walkthrough: Creating a ReportViewer Report, Walkthrough: Using a Database Data Source with the ReportViewer Windows Forms Control in Local Processing Mode, and Walkthrough: Using a Database Data Source with the ReportViewer Web Server Control in Local Processing Mode.

See Also

Adventureworks 2012 Download

Concepts

Download Adventureworks 2016

Other Resources