Readme_Installing Sample Databases from Script
These are instructions for installing the AdventureWorks sample databases by running the appropriate installation script from SQL Server Management Studio Query Editor. The installation script removes the existing sample database, re-creates the database objects, and populates the tables. Alternatively, you can download the AdventureWorks database at the SQL Server Developer Web site.
To install AdventureWorks OLTP from script:
From the Management Studio tool bar, click File, point to Open and then click File.
Browse to C:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks OLTP, select the file instawdb.sql and click Open.
Before running the script, locate the statement
SET @data_path = @sql_path + 'AWDB\';
in the script and change the statement toSET @data_path = 'c:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks OLTP\'
Run the script.
To install AdventureWorks Data Warehouse from script:
From the Management Studio tool bar, click File, point to Open and then click File.
Browse to C:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks Data Warehouse, select the file instawdwdb.sql and click Open.
Before running the script, locate the statement
SET @data_path = @sql_path + 'awdwdb\';
in the script and change the statement toSELECT @data_path = 'c:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks Data Warehouse\';
.Run the script.
To Deploy AdventureWorks OLAP:
Ensure the AdventureWorksDW and AdventureWorksAS databases have been installed.
Ensure Analysis Services has been installed.
From the Business Intelligence Development Studio tool bar, click File, point to Open and then click Project/Solution.
Browse to C:\Program Files\Microsoft SQL Server\90\Tools\Samples\AdventureWorks Analysis Services Project, select the file Adventure Works DW.dwproj and click Open.
From Solution Explorer, right-click Adventure Works DW and select Deploy.