Guides to Setting Up for Labs/Project Using DW with...
Transcript of Guides to Setting Up for Labs/Project Using DW with...
Sunnie S Chung
Guides to Setting Up for Labs/Project Using DW with OLAP
Phase 1: Preparation of Labs/Project
1. Downloads and Installations
1. Visual Studio 2012/2013 or higher
2. SQL Server 2012/2013 or higher
3. Microsoft SQL Server Data Tools (for Analysis Service) - Business Intelligence (SSDT
BI) for Visual Studio 2012/2013
4. Adventure Works (a Sample Data Warehouse) for SQL Server 2012/2014
For download and installation instructions:
Downloading and Installation Guides and Set up Instructions are available on the class
webpage.
You can access each class webpage from my webpage: http://grail.csuohio.edu/~sschung/
Or
https://msdn.microsoft.com/en-US/library/jj856966(v=sql.120).aspx
After successful installations,
1. Open Visual Studio
2. File -> New Project
3. You should see following BI add-ons which lets you create Data mining projects.
a. Analysis Service
b. Integration Service
c. Reporting Service
Sunnie S Chung
PHASE 2:
Downloading and Setting up a Sample Database/DW Adventure Works 2012
(or 2014) Data Warehouse for SQL Server 2012/2014
1. Go to Microsoft CodePlex site:
2. For Adventure Works DW Databases – 2012
http://msftdbprodsamples.codeplex.com/
3. For Adventure Works DW Databases – 2014
http://msftdbprodsamples.codeplex.com/releases/
4. Download Adventure Works DW Databases – 2012 or higher
Choose Either 2012 SQL Server DW 2012/2014
or 2012 SQL Server OLAP 2012/2014
5. Restore database in SQL Server 2012/2014.
6. There are two different ways to restore Adventure Works DW in your SQL Server
Sunnie S Chung
6-1) Simpler Way:
- When you downloaded Adventure Works DW 2012 and restoring the DW in SQL
Server 2012, See the instruction to follow at:
1) Attach the Adventure Work 2012
2) Download the zip file from this website
http://msftdbprodsamples.codeplex.com/releases/view/105902
Sunnie S Chung
3) After downloading, unzip the folder and then copy the .mdf file and .ldf file in this directory
- C:\Program Files\Microsoft SQL Server\MSSQL11.SS2012\MSSQL\DATA (If you
don’t put them in this directory you will get an error when attaching the files).
Or
C:\Program Files\Microsoft SQL Server\MSSQL12.MSSQLSERVER\MSSQL\DATA
4) Right click on the database and choose attach.
5) The attach database page appears
Sunnie S Chung
6) Click the Add button and then browse for adventure work file
7) Then Click OK
Sunnie S Chung
8) On the object explorer expand the Databases and then expand the AdventureWorksDW2012.
You will get:
Sunnie S Chung
7. After the step 6, you should see the following tables or the similar.
Sunnie S Chung
Step 6-2: Another Professional Way:
- When you downloaded Adventure Works DW 2014 and restoring the DW in SQL
Server 2014 at:
http://msftdbprodsamples.codeplex.com/releases/
Download the following:
Adventure Works 2014 Warehouse Script.zip
Make sure you have instawdb.sql in the downloaded files.
Find the readme file below in the site and See the instruction (Readme file) to follow at:
Readme for Adventure Works 2014 Sample Databases.docx
7. After the step 6, you should see the following tables or the similar.
Sunnie S Chung
2) Creating Olap Cube:
Microsoft SQL Server Data Tools - Business Intelligence for Visual Studio 2012:
1) Go to All Programs >> Microsoft SQL Server 2012 >> SQL Server Data Tools
2) Click new project and verify Business Intelligence Projects is selected in the Project type’s pane.
In the Templates pane, select Analysis Services Multidimensional and Data Mining Project.
Sunnie S Chung
3) Name the project and click ok
Step 1: Create Data Source
a) In The solution explorer, right click on Data Sources and click New Data Source.
b) Data Source Wizard will appear
Sunnie S Chung
c) Click Next
d) Click New
e) Enter the name of the server and the database name “AdventureWorkDW2012” and select
windows authentication.
Sunnie S Chung
f) Click Next
g) Check Inherit then Next
Sunnie S Chung
h) Click Finish
Sunnie S Chung
Step 2: Create New Data Source View
a) In the Solution Explorer, Right Click on Data Source View and click on New Data Source
View
b) Click Next
Sunnie S Chung
c) Select AdventureWorks2012DW and Click Next
d) On Select Table and Views , choose these dimensions and fact table
Sunnie S Chung
DimCustomer
DimProduct
DimGeography
DimDate
FactInternetSales
then Click Next
e) Click Finish
Sunnie S Chung
f) Now Data Source View is ready to use
References
• http://msftdbprodsamples.codeplex.com/releases/
• https://msdn.microsoft.com/en-us/library/ms143708(v=sql.120).aspx
• https://msdn.microsoft.com/en-us/library/mt204009.aspx
• http://msftdbprodsamples.codeplex.com/releases/view/105902
• http://www.codeproject.com/Articles/658912/Create-First-OLAP-Cube-in-SQL-Server-
Analysis-Serv
• http://www.codeproject.com/Articles/710387/Learn-to-Write-Custom-MDX-Query-First-Time
• http://msdn.microsoft.com/en-IN/library/ms175595.aspx
Sunnie S Chung
• http://marktab.net/datamining/2010/08/21/mining-olap-cubes
• http://www.erpsoftwareblog.com/2014/04/using-ssas-sql-server-analysis-services-data-
mining-to-automate-marketing-analysis-part-1/
• http://msdn.microsoft.com/en-us/library/cc280440.aspx
• https://msdn.microsoft.com/en-us/library/cc879271.aspx
• https://msdn.microsoft.com/en-us/library/jj856966.aspx
• https://msdn.microsoft.com/en-us/library/mt204009.aspx