Installing Sample Databases
To install all the sample databases for SQL Server 2008 perform the following steps:
- Using the object explorer in SSMS delete any earlier version of the AdventureWorks sample databases you may have installed.
- Using the file explorer ensure all .MDF and .LDF files have been deleted from the data directory for all sample databases in the instance you will be installing the new sample databases. For the default instance, the path to the data directory for OLTP, LT, and DW sample databases is typically C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA.
- Navigate to http://www.codeplex.com/MSFTDBProdSamples/Release/ProjectReleases.aspx and respond to all the dialogs presented by the installer as detailed below.

Click one of the Windows Installer (.msi) links in the highlighted area of the samples database download page based on the architecture of the machine which will be running the installer.

Click the
Run button for the File Download - Security Warning dialog

Click the
Run button for the Internet Explorer - Security Warning dialog

Click the
Next button on the Welcome page of the installer.

Click the license agreement check box, then click the
Next button.

Click the
Next button of the Custom Setup dialog.

Use the pull down selector to choose the instance to install the sample database in. Be sure to read all the content in this dialog. Then press the
Next button.

Click the
Install button on the Ready to install dialog.
Cannot resolve image macro, invalid image name or id.This dialog will appear to indicate installation progress. On Vista, a User Access Control dialog may appear asking for administrator permission. Be sure to grant permission in this dialog if it appears. When the installation is complete, click the
Finish button.