SlideShare a Scribd company logo
Creating a Data Warehouse using
SQL Server Integration Services
After completing this lab, you will be able to:
Create a Data Warehouse from SQL Scripts
Populate the Data Warehouse using SSIS
This lab focuses on the concepts in this module and as a result may not comply with Microsoft
security recommendations.
Exercise 1:
Explore the Data
In this exercise, you will explore the data in the Adventure Works database using the SQL Server
Management Studio.
SQL Server Management Studio is a new tool built for SQL Server 2005/2008. It combines the
functionality of the Enterprise Manager snap-in and the Query Analyzer. Although this is the main
tool for administering one or more SQL Servers, you can also use the SQL Server Management
Studio for executing queries and scripts, and for managing SQL Server projects.
The Adventure Works database is a sample database for the fictional Bike company – Adventure
Works. It replaces the Northwind sample database as the basis for all the samples provided in SQL
Server 2008 and it is provided by Microsoft.
Task 1: Open SQL Server Management Studio and connect to your server
From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL
Server Management Studio.
When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server
type, and verify that Windows Authentication is selected as the authentication method.
Change the server name to (local)
Objectives
Note
Estimated time to complete this lab: 45 minutes
2 Creating a Data Warehouse using SQL Server Integration ServicesFigure: The Connect to Server dialog
Click Connect.
Note the various areas of the SQL Server Management Studio:
In the Upper left hand corner of the window you will see the Object Explorer pane.
Figure: Object Explorer
The Object Explorer pane allows you to explore through the objects that are available in the SQL
Server that you are currently connected to.
Task 2: Explore the Adventure Works Database
1. In the Object Explorer expand the AdventureWorks database from inside the Databases folder.
You will notice that the database has folders for Tables, Views, Programmability, and so on. Our
focus will be on the Tables.
Note: Views may also be used; however, we will not take them into consideration in this lab.
2. Expand the Tables folder.
3. Examine the following tables:
a. Production.Product
b. Production.ProductCategory
c. Production.ProductSubCategory
d. Sales.SalesOrderHeader
e. Sales.SalesOrderDetail
You may expand the table to view its available columns – this will show you the fields available
and their data types. You can also open the table to see the data it contains by right clicking and
selecting SELECT TOP 1000 ROWS.
Creating a Data Warehouse using SQL Server Integration Services 3
Exercise 2:
Create the Data Warehouse Structure (schema)
In this exercise you will create the Data Warehouse structure. Due to time restriction, this will be
done with a pre-written SQL script. Your presenter will step through the script with you.
The script is available for download from –
http://sharepoint.ssw.com.au/Training/CallDesign/Documents/01_DWCreateScript.sql
Task 1: Open the SQL Script
1. Save the DWCreateScript.sql from the URL shown above.
2. In the SQL Management Studio click on File > Open and select File.
3. Browse to the location of the DWCreateScript.sql file.
4. Select the DWCreateScript.sql file and click Open.
Figure: Click Open to Open the File
5. You may be presented with a Security Dialog. If you are ensure that the Server Name is correct
and that the Authentication is set to Windows Authentication.
6. Click Connect.
Figure: The DWCreateScript.sql file will now be opened in the SQL Management Studio.
7. Read through the script file to see how the Database, and the Dimension and Fact tables are
created.
Task 2: Execute the Script
1. Press F5 to execute the Script. Alternatively you can click the button.
2. Verify that the script has run without any errors or warnings.
3. Refresh the Object Explorer
4 Creating a Data Warehouse using SQL Server Integration Services
Figure: Refresh the Databases list
4. Explore the AdventureWorksDW_UTS database.
5. Open the DimDate table to verify that it has been populated.
Figure: Open the DimDate table
Note: You may also open the other tables to see that they are empty.
Creating a Data Warehouse using SQL Server Integration Services 5
Exercise 3:
Create the SSIS Package
In this exercise, you will use the SQL Server Business Intelligence Development Studio (Visual
Studio 2008) to create a SSIS project. This project will contain the package used to populate the
Data Warehouse.
Task 1: Create the Integration Services Project
1. From the Start Menu select All Programs | Microsoft SQL Server 2008 | SQL Server
Business Intelligence Development Studio.
2. Click File | New | Project
3. From the Project Types box select Business Intelligence Projects.
4. Select Integration Services Project.
5. Name the Project LoadDW.
6. Change the location to C:tempCallDesign
7. Click OK.
You have now created the Integration Services Project.
Task 2: Create the Connection Objects
1. Right Click in the Connection Managers window (lower window).
2. Select New OLE DB Connection…
3. Click on the New button.
4. Enter localhost as the Server Name
5. Select the AdventureWorks database from the list.
6. Click OK.
6 Creating a Data Warehouse using SQL Server Integration Services
7. Click OK
8. Repeat steps 1 through 7 for the AdventureWorksDW_UTS database.
You should now have the following connections.
Task 3: Initialize Data Warehouse
1. Click View | Toolbox to display the Toolbox.
2. From Control Flow Items drag an Execute SQL Task onto the Control Flow tab.
3. Right click on the Execute SQL Task and select Edit to display the Execute SQL Task Editor.
4. Set the Name to Initialize DW
5. Set the Description to Clear down DW Tables
6. Set the Connection to Localhost.AdventureWorksDW_UTS
7. Set the SQL Statement to procDWInitialize
8. Click OK
9. Right Click on the Initialize DW task and select Execute Task
Creating a Data Warehouse using SQL Server Integration Services 710. Verify that the task ran successfully. (It should be green)
11. Select Debug | Stop Debugging (Shift + F5)
Task 4: Load Data
1. From the Control Flow Items drag a Sequence Container onto the Control Flow tab.
Figure : Sequence Container is a place to store other items, to make it easy to manage related
tasks in one place.
2. Rename the Sequence Container to Load DW
3. Click on the Initialize DW task
4. Drag the Green Arrow onto the Load DW sequence container.
5. From Control Flow Items drag a Data Flow Task into the Load DW sequence container.
6. Rename the Data Flow task Load Product Category
7. Right Click on Load Product Category and select Edit – this will take you to the Data Flow
tab.
8. Drag an OLE DB Source from the Data Flow Sources section of the Toolbox onto the Data
Flow tab.
9. Rename the OLE DB Source to Product Category DB
10. Right Click on Product Category DB and select Edit
11. Select Localhost.AdventureWorks from the Connection Manager dropdown.
12. Select Table or View as the Data Access Mode
13. Select [Production].[ProductCategory] as the Name of the table.
14. Click OK
15. Drag an OLE DB Destination from the Data Flow Destinations section of the Toolbox onto
the Data Flow tab.
16. Rename the OLE DB Destination to Product Category DW
17. Drag the Green Arrow from Product Category DB onto Product Category DW
18. Right Click on Product Category DW and select Edit
19. Select Localhost.AdventureWorksDW_UTS from the Connection Manager dropdown.
20. Select Table or View – fast load as the Data Access Mode
21. Select [dbo].[DimProductCategory] as the Name of the table.
8 Creating a Data Warehouse using SQL Server Integration Services23. Click on the Name and drag across to the EnglishProductCategoryName
24. Click OK
25. Click on the Control Flow tab.
26. Right Click on the Load DW sequence container
27. Select Execute Container
28. Repeat the relevant steps from 5 – 26 for the following four Tables
a. Production.Product
b. Production.ProductSubCategory
i. Map Name to EnglishProductSubcategoryName
ii. Map ProductCategoryID to ProductCategoryID
c. Sales.SalesOrderHeader
d. Sales.SalesOrderDetail
i. Note: You will have to remove the mapping on the SalesOrderDetail.LineTotal
column as this is a calculated column in our DW so we don’t need to import it.
You can remove the mapping my right clicking Line Total in the Input
Column and selecting Delete.
29. Press F5 to Execute the entire package.
Creating a Data Warehouse using SQL Server Integration Services 9
Exercise 5:
Verify the Data
In this exercise, you will return to the SQL Management Studio and verify that the Data Warehouse
has been populated. You will also run a sample query on our Data Warehouse to show it in action.
Task 1: Open SQL Server Management Studio and connect to your server
From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL
Server Management Studio.
When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server
type, and verify that Windows Authentication is selected as the authentication method.
Figure : The Connect to Server Dialog
Click Connect.
Task 2: Explore the AdventureWorksDW_UTS Database
4. In the Object Explorer expand the AdventureWorksDW_UTS database from inside the
Databases folder.
5. Expand the Tables folder.
6. Examine the following tables:
a. DimProduct
b. DimProductCategory
c. DimProductSubCategory
d. SalesOrderHeader
e. SalesOrderDetail
f. DimDate
You may expand the table to view its available columns – this will show you the fields available
and their data types. You can also open the table to see the data it contains by right clicking and
selecting Select top 1000 Rows Table.
Creating a Data Warehouse using SQL Server Integration Services 9
Exercise 5:
Verify the Data
In this exercise, you will return to the SQL Management Studio and verify that the Data Warehouse
has been populated. You will also run a sample query on our Data Warehouse to show it in action.
Task 1: Open SQL Server Management Studio and connect to your server
From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL
Server Management Studio.
When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server
type, and verify that Windows Authentication is selected as the authentication method.
Figure : The Connect to Server Dialog
Click Connect.
Task 2: Explore the AdventureWorksDW_UTS Database
4. In the Object Explorer expand the AdventureWorksDW_UTS database from inside the
Databases folder.
5. Expand the Tables folder.
6. Examine the following tables:
a. DimProduct
b. DimProductCategory
c. DimProductSubCategory
d. SalesOrderHeader
e. SalesOrderDetail
f. DimDate
You may expand the table to view its available columns – this will show you the fields available
and their data types. You can also open the table to see the data it contains by right clicking and
selecting Select top 1000 Rows Table.

More Related Content

What's hot

Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
deepakk073
 
Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)
James Serra
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
Ajeet Singh
 
SSIS Presentation
SSIS PresentationSSIS Presentation
SSIS Presentation
BarbaraBederman
 
Introduction of sql server indexing
Introduction of sql server indexingIntroduction of sql server indexing
Introduction of sql server indexing
Mahabubur Rahaman
 
Presentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocksPresentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocks
Vinay Ugave
 
SSIS control flow
SSIS control flowSSIS control flow
SSIS control flow
Slava Kokaev
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
Md.Mojibul Hoque
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
Filip Ilievski
 
Hive
HiveHive
My tableau
My tableauMy tableau
My tableau
Girish Srivastava
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Introduction to Azure Data Factory
Introduction to Azure Data FactoryIntroduction to Azure Data Factory
Introduction to Azure Data Factory
Slava Kokaev
 
Modern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemModern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform System
James Serra
 
PPT on Hadoop
PPT on HadoopPPT on Hadoop
PPT on Hadoop
Shubham Parmar
 
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
Codership Oy - Creators of Galera Cluster
 
An Overview of Apache Cassandra
An Overview of Apache CassandraAn Overview of Apache Cassandra
An Overview of Apache Cassandra
DataStax
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault Modeling
Kent Graziano
 
History of MySQL
History of MySQLHistory of MySQL
History of MySQL
KentAnderson43
 
Tableau
TableauTableau

What's hot (20)

Introduction of ssis
Introduction of ssisIntroduction of ssis
Introduction of ssis
 
Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)Azure Synapse Analytics Overview (r1)
Azure Synapse Analytics Overview (r1)
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
SSIS Presentation
SSIS PresentationSSIS Presentation
SSIS Presentation
 
Introduction of sql server indexing
Introduction of sql server indexingIntroduction of sql server indexing
Introduction of sql server indexing
 
Presentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocksPresentation on tablespaceses segments extends and blocks
Presentation on tablespaceses segments extends and blocks
 
SSIS control flow
SSIS control flowSSIS control flow
SSIS control flow
 
Ms sql-server
Ms sql-serverMs sql-server
Ms sql-server
 
NoSQL databases
NoSQL databasesNoSQL databases
NoSQL databases
 
Hive
HiveHive
Hive
 
My tableau
My tableauMy tableau
My tableau
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Introduction to Azure Data Factory
Introduction to Azure Data FactoryIntroduction to Azure Data Factory
Introduction to Azure Data Factory
 
Modern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform SystemModern Data Warehousing with the Microsoft Analytics Platform System
Modern Data Warehousing with the Microsoft Analytics Platform System
 
PPT on Hadoop
PPT on HadoopPPT on Hadoop
PPT on Hadoop
 
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
Choosing between Codership's MySQL Galera, MariaDB Galera Cluster and Percona...
 
An Overview of Apache Cassandra
An Overview of Apache CassandraAn Overview of Apache Cassandra
An Overview of Apache Cassandra
 
Introduction to Data Vault Modeling
Introduction to Data Vault ModelingIntroduction to Data Vault Modeling
Introduction to Data Vault Modeling
 
History of MySQL
History of MySQLHistory of MySQL
History of MySQL
 
Tableau
TableauTableau
Tableau
 

Similar to ssis lab

Dbi h315
Dbi h315Dbi h315
Sql server 2012 tutorials writing transact-sql statements
Sql server 2012 tutorials   writing transact-sql statementsSql server 2012 tutorials   writing transact-sql statements
Sql server 2012 tutorials writing transact-sql statements
Steve Xu
 
Database development connection steps
Database development connection stepsDatabase development connection steps
Database development connection steps
Aravindharamanan S
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
Matthew Moldvan
 
Sql server 2012 tutorials analysis services tabular modeling
Sql server 2012 tutorials   analysis services tabular modelingSql server 2012 tutorials   analysis services tabular modeling
Sql server 2012 tutorials analysis services tabular modeling
Компания Робот Икс
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
John Joseph San Juan
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Cloud and Ubiquitous Computing manual
Cloud and Ubiquitous Computing manual Cloud and Ubiquitous Computing manual
Cloud and Ubiquitous Computing manual
Sonali Parab
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data Catolog
LiquidHub
 
Hands-On Lab Data Mining - SQL Server
Hands-On Lab Data Mining - SQL ServerHands-On Lab Data Mining - SQL Server
Hands-On Lab Data Mining - SQL Server
Serra Laercio
 
The olap tutorial 2012
The olap tutorial 2012The olap tutorial 2012
The olap tutorial 2012
Amin Jalali
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data Catolog
LiquidHub
 
Pl lab solution
Pl lab solutionPl lab solution
Pl lab solution
Ashwin Kumar
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
Aeric Poon
 
Creating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration toolCreating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration tool
Ravi Kumar Lanke
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
Rakesh Gujjarlapudi
 
Odi 11g master and work repository creation steps
Odi 11g master and work repository creation stepsOdi 11g master and work repository creation steps
Odi 11g master and work repository creation steps
Dharmaraj Borse
 
How to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design toolHow to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design tool
TL Technologies - Thoughts Become Things
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
Abhinaw Kumar
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementation
nitin2517
 

Similar to ssis lab (20)

Dbi h315
Dbi h315Dbi h315
Dbi h315
 
Sql server 2012 tutorials writing transact-sql statements
Sql server 2012 tutorials   writing transact-sql statementsSql server 2012 tutorials   writing transact-sql statements
Sql server 2012 tutorials writing transact-sql statements
 
Database development connection steps
Database development connection stepsDatabase development connection steps
Database development connection steps
 
It203 class slides-unit5
It203 class slides-unit5It203 class slides-unit5
It203 class slides-unit5
 
Sql server 2012 tutorials analysis services tabular modeling
Sql server 2012 tutorials   analysis services tabular modelingSql server 2012 tutorials   analysis services tabular modeling
Sql server 2012 tutorials analysis services tabular modeling
 
Database Connection
Database ConnectionDatabase Connection
Database Connection
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Cloud and Ubiquitous Computing manual
Cloud and Ubiquitous Computing manual Cloud and Ubiquitous Computing manual
Cloud and Ubiquitous Computing manual
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data Catolog
 
Hands-On Lab Data Mining - SQL Server
Hands-On Lab Data Mining - SQL ServerHands-On Lab Data Mining - SQL Server
Hands-On Lab Data Mining - SQL Server
 
The olap tutorial 2012
The olap tutorial 2012The olap tutorial 2012
The olap tutorial 2012
 
( 5 ) Office 2007 Create A Business Data Catolog
( 5 ) Office 2007   Create A Business Data Catolog( 5 ) Office 2007   Create A Business Data Catolog
( 5 ) Office 2007 Create A Business Data Catolog
 
Pl lab solution
Pl lab solutionPl lab solution
Pl lab solution
 
Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...Tutorial on how to load images in crystal reports dynamically using visual ba...
Tutorial on how to load images in crystal reports dynamically using visual ba...
 
Creating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration toolCreating a repository using the oracle business intelligence administration tool
Creating a repository using the oracle business intelligence administration tool
 
Oracle ADF 11g Tutorial
Oracle ADF 11g TutorialOracle ADF 11g Tutorial
Oracle ADF 11g Tutorial
 
Odi 11g master and work repository creation steps
Odi 11g master and work repository creation stepsOdi 11g master and work repository creation steps
Odi 11g master and work repository creation steps
 
How to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design toolHow to creating a universe with the bo xi 4.0 information design tool
How to creating a universe with the bo xi 4.0 information design tool
 
Oracle application express ppt
Oracle application express pptOracle application express ppt
Oracle application express ppt
 
How to develop a gateway service using code based implementation
How to develop a gateway service using code based implementationHow to develop a gateway service using code based implementation
How to develop a gateway service using code based implementation
 

Recently uploaded

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
panagenda
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
Federico Razzoli
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
Matthew Sinclair
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
Zilliz
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
jpupo2018
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
Wouter Lemaire
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
David Brossard
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
Brandon Minnick, MBA
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Safe Software
 

Recently uploaded (20)

HCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAUHCL Notes and Domino License Cost Reduction in the World of DLAU
HCL Notes and Domino License Cost Reduction in the World of DLAU
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Webinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data WarehouseWebinar: Designing a schema for a Data Warehouse
Webinar: Designing a schema for a Data Warehouse
 
20240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 202420240609 QFM020 Irresponsible AI Reading List May 2024
20240609 QFM020 Irresponsible AI Reading List May 2024
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Generating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and MilvusGenerating privacy-protected synthetic data using Secludy and Milvus
Generating privacy-protected synthetic data using Secludy and Milvus
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Project Management Semester Long Project - Acuity
Project Management Semester Long Project - AcuityProject Management Semester Long Project - Acuity
Project Management Semester Long Project - Acuity
 
UI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentationUI5 Controls simplified - UI5con2024 presentation
UI5 Controls simplified - UI5con2024 presentation
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
OpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - AuthorizationOpenID AuthZEN Interop Read Out - Authorization
OpenID AuthZEN Interop Read Out - Authorization
 
Choosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptxChoosing The Best AWS Service For Your Website + API.pptx
Choosing The Best AWS Service For Your Website + API.pptx
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
Driving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success StoryDriving Business Innovation: Latest Generative AI Advancements & Success Story
Driving Business Innovation: Latest Generative AI Advancements & Success Story
 

ssis lab

  • 1. Creating a Data Warehouse using SQL Server Integration Services After completing this lab, you will be able to: Create a Data Warehouse from SQL Scripts Populate the Data Warehouse using SSIS This lab focuses on the concepts in this module and as a result may not comply with Microsoft security recommendations. Exercise 1: Explore the Data In this exercise, you will explore the data in the Adventure Works database using the SQL Server Management Studio. SQL Server Management Studio is a new tool built for SQL Server 2005/2008. It combines the functionality of the Enterprise Manager snap-in and the Query Analyzer. Although this is the main tool for administering one or more SQL Servers, you can also use the SQL Server Management Studio for executing queries and scripts, and for managing SQL Server projects. The Adventure Works database is a sample database for the fictional Bike company – Adventure Works. It replaces the Northwind sample database as the basis for all the samples provided in SQL Server 2008 and it is provided by Microsoft. Task 1: Open SQL Server Management Studio and connect to your server From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL Server Management Studio. When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server type, and verify that Windows Authentication is selected as the authentication method. Change the server name to (local) Objectives Note Estimated time to complete this lab: 45 minutes
  • 2. 2 Creating a Data Warehouse using SQL Server Integration ServicesFigure: The Connect to Server dialog Click Connect. Note the various areas of the SQL Server Management Studio: In the Upper left hand corner of the window you will see the Object Explorer pane. Figure: Object Explorer The Object Explorer pane allows you to explore through the objects that are available in the SQL Server that you are currently connected to. Task 2: Explore the Adventure Works Database 1. In the Object Explorer expand the AdventureWorks database from inside the Databases folder. You will notice that the database has folders for Tables, Views, Programmability, and so on. Our focus will be on the Tables. Note: Views may also be used; however, we will not take them into consideration in this lab. 2. Expand the Tables folder. 3. Examine the following tables: a. Production.Product b. Production.ProductCategory c. Production.ProductSubCategory d. Sales.SalesOrderHeader e. Sales.SalesOrderDetail You may expand the table to view its available columns – this will show you the fields available and their data types. You can also open the table to see the data it contains by right clicking and selecting SELECT TOP 1000 ROWS.
  • 3. Creating a Data Warehouse using SQL Server Integration Services 3 Exercise 2: Create the Data Warehouse Structure (schema) In this exercise you will create the Data Warehouse structure. Due to time restriction, this will be done with a pre-written SQL script. Your presenter will step through the script with you. The script is available for download from – http://sharepoint.ssw.com.au/Training/CallDesign/Documents/01_DWCreateScript.sql Task 1: Open the SQL Script 1. Save the DWCreateScript.sql from the URL shown above. 2. In the SQL Management Studio click on File > Open and select File. 3. Browse to the location of the DWCreateScript.sql file. 4. Select the DWCreateScript.sql file and click Open. Figure: Click Open to Open the File 5. You may be presented with a Security Dialog. If you are ensure that the Server Name is correct and that the Authentication is set to Windows Authentication. 6. Click Connect. Figure: The DWCreateScript.sql file will now be opened in the SQL Management Studio. 7. Read through the script file to see how the Database, and the Dimension and Fact tables are created. Task 2: Execute the Script 1. Press F5 to execute the Script. Alternatively you can click the button. 2. Verify that the script has run without any errors or warnings. 3. Refresh the Object Explorer
  • 4. 4 Creating a Data Warehouse using SQL Server Integration Services Figure: Refresh the Databases list 4. Explore the AdventureWorksDW_UTS database. 5. Open the DimDate table to verify that it has been populated. Figure: Open the DimDate table Note: You may also open the other tables to see that they are empty.
  • 5. Creating a Data Warehouse using SQL Server Integration Services 5 Exercise 3: Create the SSIS Package In this exercise, you will use the SQL Server Business Intelligence Development Studio (Visual Studio 2008) to create a SSIS project. This project will contain the package used to populate the Data Warehouse. Task 1: Create the Integration Services Project 1. From the Start Menu select All Programs | Microsoft SQL Server 2008 | SQL Server Business Intelligence Development Studio. 2. Click File | New | Project 3. From the Project Types box select Business Intelligence Projects. 4. Select Integration Services Project. 5. Name the Project LoadDW. 6. Change the location to C:tempCallDesign 7. Click OK. You have now created the Integration Services Project. Task 2: Create the Connection Objects 1. Right Click in the Connection Managers window (lower window). 2. Select New OLE DB Connection… 3. Click on the New button. 4. Enter localhost as the Server Name 5. Select the AdventureWorks database from the list. 6. Click OK.
  • 6. 6 Creating a Data Warehouse using SQL Server Integration Services 7. Click OK 8. Repeat steps 1 through 7 for the AdventureWorksDW_UTS database. You should now have the following connections. Task 3: Initialize Data Warehouse 1. Click View | Toolbox to display the Toolbox. 2. From Control Flow Items drag an Execute SQL Task onto the Control Flow tab. 3. Right click on the Execute SQL Task and select Edit to display the Execute SQL Task Editor. 4. Set the Name to Initialize DW 5. Set the Description to Clear down DW Tables 6. Set the Connection to Localhost.AdventureWorksDW_UTS 7. Set the SQL Statement to procDWInitialize 8. Click OK 9. Right Click on the Initialize DW task and select Execute Task
  • 7. Creating a Data Warehouse using SQL Server Integration Services 710. Verify that the task ran successfully. (It should be green) 11. Select Debug | Stop Debugging (Shift + F5) Task 4: Load Data 1. From the Control Flow Items drag a Sequence Container onto the Control Flow tab. Figure : Sequence Container is a place to store other items, to make it easy to manage related tasks in one place. 2. Rename the Sequence Container to Load DW 3. Click on the Initialize DW task 4. Drag the Green Arrow onto the Load DW sequence container. 5. From Control Flow Items drag a Data Flow Task into the Load DW sequence container. 6. Rename the Data Flow task Load Product Category 7. Right Click on Load Product Category and select Edit – this will take you to the Data Flow tab. 8. Drag an OLE DB Source from the Data Flow Sources section of the Toolbox onto the Data Flow tab. 9. Rename the OLE DB Source to Product Category DB 10. Right Click on Product Category DB and select Edit 11. Select Localhost.AdventureWorks from the Connection Manager dropdown. 12. Select Table or View as the Data Access Mode 13. Select [Production].[ProductCategory] as the Name of the table. 14. Click OK 15. Drag an OLE DB Destination from the Data Flow Destinations section of the Toolbox onto the Data Flow tab. 16. Rename the OLE DB Destination to Product Category DW 17. Drag the Green Arrow from Product Category DB onto Product Category DW 18. Right Click on Product Category DW and select Edit 19. Select Localhost.AdventureWorksDW_UTS from the Connection Manager dropdown. 20. Select Table or View – fast load as the Data Access Mode 21. Select [dbo].[DimProductCategory] as the Name of the table.
  • 8. 8 Creating a Data Warehouse using SQL Server Integration Services23. Click on the Name and drag across to the EnglishProductCategoryName 24. Click OK 25. Click on the Control Flow tab. 26. Right Click on the Load DW sequence container 27. Select Execute Container 28. Repeat the relevant steps from 5 – 26 for the following four Tables a. Production.Product b. Production.ProductSubCategory i. Map Name to EnglishProductSubcategoryName ii. Map ProductCategoryID to ProductCategoryID c. Sales.SalesOrderHeader d. Sales.SalesOrderDetail i. Note: You will have to remove the mapping on the SalesOrderDetail.LineTotal column as this is a calculated column in our DW so we don’t need to import it. You can remove the mapping my right clicking Line Total in the Input Column and selecting Delete. 29. Press F5 to Execute the entire package.
  • 9. Creating a Data Warehouse using SQL Server Integration Services 9 Exercise 5: Verify the Data In this exercise, you will return to the SQL Management Studio and verify that the Data Warehouse has been populated. You will also run a sample query on our Data Warehouse to show it in action. Task 1: Open SQL Server Management Studio and connect to your server From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL Server Management Studio. When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server type, and verify that Windows Authentication is selected as the authentication method. Figure : The Connect to Server Dialog Click Connect. Task 2: Explore the AdventureWorksDW_UTS Database 4. In the Object Explorer expand the AdventureWorksDW_UTS database from inside the Databases folder. 5. Expand the Tables folder. 6. Examine the following tables: a. DimProduct b. DimProductCategory c. DimProductSubCategory d. SalesOrderHeader e. SalesOrderDetail f. DimDate You may expand the table to view its available columns – this will show you the fields available and their data types. You can also open the table to see the data it contains by right clicking and selecting Select top 1000 Rows Table.
  • 10. Creating a Data Warehouse using SQL Server Integration Services 9 Exercise 5: Verify the Data In this exercise, you will return to the SQL Management Studio and verify that the Data Warehouse has been populated. You will also run a sample query on our Data Warehouse to show it in action. Task 1: Open SQL Server Management Studio and connect to your server From the Windows task bar, select Start | All Programs | Microsoft SQL Server 2008 | SQL Server Management Studio. When the Connect to Server dialog box opens, verify that SQL Server is selected as the Server type, and verify that Windows Authentication is selected as the authentication method. Figure : The Connect to Server Dialog Click Connect. Task 2: Explore the AdventureWorksDW_UTS Database 4. In the Object Explorer expand the AdventureWorksDW_UTS database from inside the Databases folder. 5. Expand the Tables folder. 6. Examine the following tables: a. DimProduct b. DimProductCategory c. DimProductSubCategory d. SalesOrderHeader e. SalesOrderDetail f. DimDate You may expand the table to view its available columns – this will show you the fields available and their data types. You can also open the table to see the data it contains by right clicking and selecting Select top 1000 Rows Table.