You are on page 1of 8

1-28 Introduction to Data Warehousing

Lab 1: Exploring a Data Warehousing Solution

Exercise 1: Exploring Data Sources
Scenario
Adventure Works uses various software applications to manage different aspects of the
business, and each application has its own data store. Specifically:

M
C
T
U
S
E
O
N
L
Y.
S
T
U
D
E
N
T
U
S
E

Internet sales are processed through an e-commerce web application.

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.

Reseller payments are processed by an accounting application.

• The senior sales executives use a SharePoint application to manage reseller account
managers.

Products are managed in a product catalog and inventory system.

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.

X Task 1: Prepare the lab environment • Ensure that the MIA-DC1 and MIA-SQLBI virtual machines are both running. View the Products data source. • Execute the query and examine the results. Use Windows authentication to connect to the localhost instance of SQL Server. • Execute the query and examine the results. S T U D E N T U S E 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-29 The main tasks for this exercise are as follows: 1. Note that this data source contains data about resellers and the orders that they have placed through Adventure Works reseller account managers. 4. View the Reseller Sales data source. • Run the Setup Windows Command Script fle (Setup. and then log on to MIA-SQLBI as ADVENTUREWORKS\Student with the password Pa$$w0rd. and note the data sources in the solution architecture. Prepare the lab environment. . Note that this database contains data about products that Adventure Works sells.jpg JPEG image in the D:\10777A\Labfiles\Lab01\Starter folder. • Execute the query and examine the results.cmd) in the D:\10777A\Labfles\Lab01\Starter folder as Administrator. X Task 3: View the Internet Sales data source • 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. 9. View the staging database. View the Human Resources data source. View the Regional Account Managers data source. 3. 8. Note that this data source contains data about customers and the orders that they have placed through the e-commerce web application. View the solution architecture.M C T U S E O N L Y. and that products are organized into categories and subcategories.sql Microsoft SQL Server query fle in the D:\10777A\Labfiles\Lab01\Starter folder. 6. 2. X Task 5: View the Products data source • Use SQL Server Management Studio to open the View Products. X Task 2: View the solution architecture • Use Paint to view the Adventure Works DW Solution. View the Accounts data source. View the Internet Sales data source. 5. X Task 4: View the Reseller Sales data source • Use SQL Server Management Studio to open the View Reseller Sales.sql Microsoft SQL Server query file in the D:\10777A\Labfiles\Lab01\Starter folder. 7.

you should have viewed data in the InternetSales.1-30 Introduction to Data Warehousing X Task 6: View the Human Resources data source • Use SQL Server Management Studio to open the View Employees. 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. and viewed an empty staging database. • Note that all tables other than dbo. . examine the tables in the Staging database in the localhost instance of SQL Server (ensure you examine the Staging database. including sales representatives. viewed a list of regional account managers in a SharePoint site. and note that they contain details of payments that resellers have made. ResellerSales. X Task 7: View the Accounts data source M C T U S E O N L Y. X Task 8: View the Regional Account Managers data source • Use Internet Explorer to view the SharePoint site at http://mia-sqlbi. X Task 9: View the Staging database • In SQL Server Management Studio. not the DQS_STAGING_DATA database). • Execute the query and examine the results. viewed payments data in commadelimited fles. and Products SQL Server databases.sql Microsoft SQL Server query file in the D:\10777A\Labfiles\Lab01\Starter folder.ExtractLog in this database are empty. S T U D E N T U S E • Examine the comma-delimited text files in the D:\10777A\Accounts folder by opening them in Microsoft Excel 2010. Results: After this exercise. Note that this database contains data about employees. in the Object Explorer pane. • Close all files when you have finished reviewing them.

Adventure Works uses a solution based on SQL Server Integration Services to perform this ETL process. and note the ETL processes in the solution architecture. 4.M C T U S E O N L Y. Run the ETL data warehouse load process.jpg JPEG image in the D:\10777A\Labfiles\Lab01\Starter folder. Run the ETL staging process. you will examine the ETL process that is used to stage the data. and then load it into the data warehouse. The main tasks for this exercise are as follows: 1. . X Task 1: View the solution architecture • Use Paint to view the Adventure Works DW Solution. View the solution architecture. S T U D E N T U S E 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-31 Exercise 2: Exploring an ETL Process Scenario Now that you are familiar with the data sources in the Adventure Works data warehousing solution. 3. 2. View the staged data.

The package will run other packages to perform the tasks in the control flow. Note The message box may be hidden by the Visual Studio window. X Task 3: View the staged data • Use SQL Server Management Studio to view the Staging database in the localhost instance of SQL Server (take care to view the Staging database.sln solution fle in the D:\10777A\Labfles\Lab01\Starter folder with SQL Server Data Tools which is a Microsoft Visual Studio-based development environment). stop the package by clicking Stop Debugging on the Debug menu. . not the DQS_STAGING_DATA database). S T U D E N T U S E • Open the AdventureWorksETL.dtsx package. Look for a new icon on the taskbar.1-32 Introduction to Data Warehousing X Task 2: Run the ETL staging process M C T U S E O N L Y. and then double. • Note that some of the tables now contain data. After viewing this message box. • When the package has finished running. • View the control flow of the Stage Data. and then run the package by clicking Start Debugging on the Debug menu. view the SSIS packages that this solution contains. and then click it to bring the message box to the front. The package should resemble this.dtsx to open it in the designer. a message box will be displayed. • In the Solution Explorer pane. This may take several minutes.click Stage Data.

in the Solution Explorer pane. Note The message box may be hidden by the Visual Studio window. S T U D E H IB IT E 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-33 X Task 4: Run the ETL data warehouse load process • In Visual Studio. stop the package by clicking Stop Debugging on the Debug menu. and then double-click Load DW. and then run the package by clicking Start Debugging on the Debug menu. a O 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. Look for a new icon on the taskbar. a message box will be displayed. After viewing this message box. The package should resemble this. The package will run other packages to perform the tasks in the control flow. and then click it to bring the message box to the front. • When the package has finished running.dtsx to open it in the designer. • View the control flow of the Load DW. view the SSIS packages that the AdventureWorksETL solution contains. This may take several minutes.M C T U S E O N L Y.dtsx package. .

2. The main tasks for this exercise are as follows: 1. View the solution architecture. and note the data warehouse in the solution architecture.jpg JPEG image in the D:\10777A\Labfiles\Lab01\Starter folder. X Task 2: Query the data warehouse • Use SQL Server Management Studio to open the Query DW.1-34 Introduction to Data Warehousing Exercise 3: Exploring a Data Warehouse Scenario Now that you have explored the ETL process that is used to populate the Adventure Works data warehouse. X Task 1: View the solution architecture • Use Paint to view the Adventure Works DW Solution. Query the data warehouse. • Execute the query and examine the results. and execute the query in the AWDataWarehouse database. S T U D E N T U S E • Use Windows authentication to connect to the localhost instance of SQL Server. you can explore the data warehouse itself to see how it enables business users to view key business information. Note that the data warehouse contains the data necessary to view key business metrics across multiple aspects of the business. M C T U S E O N L Y. Results: After this exercise. you should have successfully retrieved business information from the data warehouse.sql Microsoft SQL Server query file in the D:\10777A\Labfiles\Lab01\Starter folder. .

M C T U S E O N L Y. Why might you consider including a staging area in your ETL solution? 2. see http://go.microsoft.co m/fwlink/? LinkID=246719. S T U D E N T U S E 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012 1-35 Module Review and Takeaways Review Questions 1. 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. .