Professional Documents
Culture Documents
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
Reseller sales are processed by sales representatives, who use a reseller sales
application. Details of the sales employees themselves are stored in a separate human
resources system.
The senior sales executives use a SharePoint application to manage reseller account
managers.
Some business partners, such as the marketing agency that Adventure Works
uses to conduct marketing campaigns, provide data to Adventure Works through
cloud-based data stores.
This distribution of data has made it difficult for business users to answer key questions
about the overall performance of the business.
In this exercise, you will examine some of the data sources within Adventure Works that will
be used in the data warehousing solution.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-29
2.
3.
4.
5.
6.
7.
8.
9.
Ensure that the MIA-DC1 and MIA-SQLBI virtual machines are both running, and then log
on to
MIA-SQLBI as ADVENTUREWORKS\Student with the password Pa$$w0rd.
Use Paint to view the Adventure Works DW Solution.jpg JPEG image in the
D:\10777A\Labfiles\Lab01\Starter folder, and note the data sources in the solution
architecture.
Use Microsoft SQL Server Management Studio to open the View Internet Sales.sql
Microsoft
SQL Server query file in the D:\10777A\Labfiles\Lab01\Starter folder. Use Windows
authentication to connect to the localhost instance of SQL Server.
Execute the query and examine the results. Note that this data source contains data
about customers and the orders that they have placed through the e-commerce web
application.
Use SQL Server Management Studio to open the View Reseller Sales.sql Microsoft
SQL Server query fle in the D:\10777A\Labfiles\Lab01\Starter folder.
Execute the query and examine the results. Note that this data source contains data
about resellers and the orders that they have placed through Adventure Works
reseller account managers.
Use SQL Server Management Studio to open the View Products.sql Microsoft SQL
Server query file in the D:\10777A\Labfiles\Lab01\Starter folder.
Execute the query and examine the results. Note that this database contains data about
products that
Adventure Works sells, and that products are organized into categories and
subcategories.
1-30
Use SQL Server Management Studio to open the View Employees.sql Microsoft SQL
Server query file in the D:\10777A\Labfiles\Lab01\Starter folder.
Execute the query and examine the results. Note that this database contains data
about employees, including sales representatives.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
Use Internet Explorer to view the SharePoint site at http://mia-sqlbi, and examine the
Regional Account Managers list. There is a link to the Regional Account
Managers list in the Quick Launch area of the SharePoint site home page.
In SQL Server Management Studio, in the Object Explorer pane, examine the tables in
the Staging database in the localhost instance of SQL Server (ensure you examine
the Staging database, not the DQS_STAGING_DATA database).
Note that all tables other than dbo.ExtractLog in this database are empty.
Results: After this exercise, you should have viewed data in the InternetSales,
ResellerSales, and Products SQL Server databases; viewed payments data in commadelimited fles; viewed a list of regional account managers in a SharePoint site; and viewed
an empty staging database.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-31
Now that you are familiar with the data sources in the Adventure Works data warehousing
solution, you will examine the ETL process that is used to stage the data, and then load it
into the data warehouse.
Adventure Works uses a solution based on SQL Server Integration Services to perform
this ETL process. The main tasks for this exercise are as follows:
1.
2.
3.
4.
Use Paint to view the Adventure Works DW Solution.jpg JPEG image in the
D:\10777A\Labfiles\Lab01\Starter folder, and note the ETL processes in the solution
architecture.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
In the Solution Explorer pane, view the SSIS packages that this solution contains, and
then double- click Stage Data.dtsx to open it in the designer. The package should
resemble this.
View the control flow of the Stage Data.dtsx package, and then run the package by
clicking Start Debugging on the Debug menu. The package will run other
packages to perform the tasks in the control flow. This may take several minutes.
When the package has finished running, a message box will be displayed. After viewing
this message box, stop the package by clicking Stop Debugging on the Debug
menu.
Note The message box may be hidden by the Visual Studio window. Look for
a new icon on the taskbar, and then click it to bring the message box to the
front.
Use SQL Server Management Studio to view the Staging database in the localhost
instance of SQL Server (take care to view the Staging database, not the
DQS_STAGING_DATA database).
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
H
IB
IT
E
10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-33
In Visual Studio, in the Solution Explorer pane, view the SSIS packages that the
AdventureWorksETL solution contains, and then double-click Load DW.dtsx to open
it in the designer. The package should resemble this.
View the control flow of the Load DW.dtsx package, and then run the package by
clicking Start Debugging on the Debug menu. The package will run other
packages to perform the tasks in the control flow. This may take several minutes.
When the package has finished running, a message box will be displayed. After
viewing this message box, stop the package by clicking Stop Debugging on the
Debug menu.
Note The message box may be hidden by the Visual Studio window. Look for
a new icon on the taskbar, and then click it to bring the message box to the
front.
h
o
e
e
Results:
After this exercise, y ou should have viewed
and run the SQL Server Integration
h
a
Services
packages
t at perform
the ETL process for the Adventure Works data warehousing
solution.
1-34
2.
Use Paint to view the Adventure Works DW Solution.jpg JPEG image in the
D:\10777A\Labfiles\Lab01\Starter folder, and note the data warehouse in the solution
architecture.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
Execute the query and examine the results. Note that the data warehouse contains the
data necessary to view key business metrics across multiple aspects of the business.
Results: After this exercise, you should have successfully retrieved business
information from the data warehouse.
M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E
10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-35
Review Questions
1.
Why might you consider including a staging area in your ETL solution?
2.
What options might you consider for performing data transformations in an ETL solution?
3.
Why would you assign the data steward role to a business user rather than a
database technology specialist?
For More Information For more information about Best Practices for Data
Warehousing with SQL Server 2008 R2, see http://go.microsoft.co m/fwlink/?
LinkID=246719.