Skip to content

Commit 30b9e06

Browse files
authored
Merge pull request #288 from barbkess/blk
Install instructions
2 parents 20a9088 + 90e0fcf commit 30b9e06

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# AdventureWorks Readme
2+
3+
These instructions install AdventureWorks from the source scripts in this Git repo. The repo contains source files for the AdventureWorks databases for SQL Server 2008R2, 2012, and 2014.
4+
5+
For the complete set of downloads and install options, see these releases:
6+
7+
- [AdventureWorks2014](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks2014)
8+
- [AdventureWorks2012](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks2012)
9+
- [AdventureWorks2008r2](https://github.com/Microsoft/sql-server-samples/releases/tag/adventureworks2008r2)
10+
11+
12+
## 2014 install instructions
13+
14+
These versions of AdventureWorks install on SQL Server 2014 or later.
15+
16+
### Determine path variables
17+
18+
Determine the path to your SQL Server installation folder. The instructions refer to this as **{SQL Server Path}**. These are the default paths:
19+
20+
- SQL Server 2014 64-bit: C:\Program Files\Microsoft SQL Server\120\
21+
- SQL Server 2014 32-bit: C:\Program Files (x86)\Microsoft SQL Server\120\
22+
23+
Determine the path to the DATA folder for your SQL Server instance. The instructions refer to this as **{DATA path}**. These are the default paths:
24+
25+
- SQL Server 2014 64-bit: C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA
26+
- SQL Server 2014 32-bit: C:\Program Files (x86)\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA
27+
28+
29+
### Install AdventureWorks2014
30+
31+
This is the OLTP version.
32+
33+
1. Create the folder {SQL Server Path}\Tools\Samples\AdventureWorks2014.
34+
2. Copy the files from the [2014-oltp](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works/2014-oltp) git folder to {SQL Server Path}\Tools\Samples\AdventureWorks2014.
35+
3. Open SQL Server Management Studio (SSMS).
36+
4. In SSMS, open the file {SQL Server Path}\Tools\Samples\AdventureWorksDW2014\instawdb.sql.
37+
4. In the script, change the :setvar SqlSamplesDatabasePath variable to your {DATA path}.
38+
5. In the script, change the :setvar SqlSamplesSourceDataPath variable to {SQL Server Path}\Tools\Samples\AdventureWorksDW2014.
39+
5. On the Query menu, click SQLCMD Mode.
40+
6. On the Standard toolbar, click the Execute button to run the script.
41+
42+
43+
### Install AdventureWorksDW2014
44+
45+
This is the data warehouse version.
46+
47+
1. Create the folder {SQL Server Path}\Tools\Samples\AdventureWorksDW2014.
48+
2. Copy the files from the [2014-dw](https://github.com/Microsoft/sql-server-samples/tree/master/samples/databases/adventure-works/2014-dw) git folder to {SQL Server Path}\Tools\Samples\AdventureWorksDW2014.
49+
3. Open SQL Server Management Studio (SSMS).
50+
4. In SSMS, open the file {SQL Server Path}\Tools\Samples\AdventureWorksDW2014\instawdbdw.sql.
51+
4. In the script, change the :setvar SqlSamplesDatabasePath variable to your {DATA path}.
52+
5. In the script, change the :setvar SqlSamplesSourceDataPath variable to {SQL Server Path}\Tools\Samples\AdventureWorksDW2014.
53+
5. On the Query menu, click SQLCMD Mode.
54+
6. On the Standard toolbar, click the Execute button to run the script.
55+

0 commit comments

Comments
 (0)