Professional Documents
Culture Documents
OVERVIEW ................................................................................................................................................... 3
SUMMARY .................................................................................................................................................. 15
Overview
In this lab, you will commence by exploring a partially completed Integration Services project designed
to populate the Adventure Works data warehouse. You will explore the design of the packages and
specifically the use of a project connection manager and package parameters both being new features
in Integration Services for SQL Server 2012.
Next you will create the SSIS Catalog and then deploy the project to this catalog. Once deployed you will
execute the Master package and review the execution results using the dashboard and standard
reports.
Note: Before you start with this exercise you must ensure that your machine meets the system
requirements detailed in the next section. Additionally, you must complete the setup steps described in
the next section.
Objectives
The objectives of this lab are to:
System Requirements
You must have installed the following items to complete this lab:
Microsoft SQL Server 2012:
Database Engine
Integration Services
SQL Server Management Studio
SQL Server Business Intelligence Development Studio
Adventure Works for SQL Server 2012
AdventureWorksDW2012
Setup
The setup and configuration for this lab involves running a Setup script included with the training kit. To
run all setup tasks for this lab:
1. Open a Windows Explorer window and browse to the labs Source folder.
2. Double-click the Setup.cmd file in this folder to launch the setup script and run all setup tasks
for this lab.
3. If the User Account Control dialog is shown, confirm the action to proceed.
Cleanup
There is no need to cleanup if you intend to continue the sequence of labs in this training kit.
1. To restore the original state of the AdventureWorksDW2012 database, open a Windows
Explorer window and browse to the labs Source\Setup folder.
2. Double-click the Cleanup.cmd file in this folder to launch the cleanup script.
3. If the User Account Control dialog is shown, confirm the action to proceed.
Exercises
This lab comprises the following exercises:
1. Exploring the Integration Services Project
2. Deploying and Managing the Integration Services Project
Feedback
Your feedback is welcome! Please, post it on our UserVoice forums.
Exercise 1: Exploring the Integration
Services Project
In this exercise, you will explore a partially completed Integration Services project design to populate
the Adventure Works data warehouse. You will explore the design of the packages and specifically the
use of a project connection manager and package parameters.
Note: This solution contains a single project that represents a partially completed ETL solution.
4. If the Error List opens, close the list to increase space in the designer window.
Figure 1
Closing the Error List
Figure 2
Copying the Address
5. To open SQL Server Management Studio, click the Start button, and then select All Programs |
Microsoft SQL Server 2012 | SQL Server Management Studio.
6. If the Connect to Server window does not open, in Object Explorer, click Connect, and then
select Database Engine.
7. In the Connect to Server window, ensure the Server Type dropdown list is set to Database
Engine.
8. In the Server Name box, enter the name of the database engine instance that hosts the
AdventureWorksDW2012 database.
9. Click Connect.
10. To open the script file, on the File menu, select Open | File.
11. In the Open File window, navigate to the \Assets folder located in the Source folder for this lab,
select the InsertConfiguration.sql file, and then click Open.
Note: This script will insert a single row into the etl.Configurations table. This table is a custom
table used to store configuration name/value pairs. Specifically, you will be inserting a row
that defines the folder location for the quota extract files.
12. On the Query menu, select Specify Values for Template Parameters.
13. In the Specify Values for Template Parameters window, right-click inside the Value box, and
then select Paste.
Figure 3
Pasting the Address
Figure 1
Script Results
Figure 5
Selecting the Parameters Tab
6. Notice that the ETLDate parameter has been configured to be required. This means a valid
value must be passed into the package at execution time.
7. Select the Control Flow tab.
8. To open the Variables window, on the SSIS menu, select Variables.
9. Notice that this package defines a single variable to store the ETLID. The purpose of this variable
is described in the package comments.
10. To close the Variables window, click the Variable windows close button.
11. To understand the package control flow design, read the comments located on the right side of
the control flow design.
12. To review the LoadFactSalesQuota execute package task configuration, right-click the
LoadFactSalesQuota task, and then select Edit.
13. In the Execute Package Task Editor window, select the Package page.
Figure 6
Selecting the Package Page
14. Notice the ReferenceType property is set to Project Reference.
Note: The Project Reference setting is a new feature in SQL Server Code2012 Integration
Services. No longer is there the requirement to create and use connection managers to locate
the package.
Note: This capability is new in SQL Server 2012 Integration Services. In earlier versions of SQL
Server, this feature was only available for grouping control flow executables (tasks and
containers).
Exercise 2: Deploying and Managing the
Integration Services Project
In this exercise, you will create the SSIS Catalog and then deploy the Populate DW project to this
catalog. Once deployed you will execute the Master package and review the execution results using the
dashboard and standard reports.
Figure 7
Expanding the Integration Services Folder
3. If there are no items in the Integration Services Catalogs folder, right-click the Integration
Services Catalogs folder, and then select Create Catalog.
4. In the Create Catalog window, in the Password box, enter Password;1.
5. In the Retype Password box, re-enter the same password, and then click OK.
6. To create a folder in the catalog, right-click SSISDB (beneath the Integration Services Catalogs
folder) and then select Create Folder.
7. In the Create Folder window, in the Folder Name box, enter AdventureWorksBI.
Figure 8
Entering the Folder Name
8. Click OK.
9. In Object Explorer, expand the Databases folder, and notice the SSISDB database.
Note: This database can be used to store deployed projects consisting of packages, connection
managers and various configurations. It is also stores execution and validation messages.
Additionally, it includes an API in the form of stored procedures that can be used by
developers and administrators to perform various tasks, like execute packages.
Note: The project deployment option will deploy the project build which is an .ispac file.
5. Click Next.
6. In the Select Destination step, in the Server Name box, if necessary, modify the text to the
name of the instance that hosts the SSIS Catalog.
7. To the right of the Path box, click Browse.
8. In the Browse for Folder or Project window, select the AdventureWorksBI folder.
Figure 9
Selecting the Folder
9. Click OK.
10. Click Next.
11. Click Deploy.
12. When the deployment has succeeded, click Close.
Figure 10
Expanding to the Project Packages
Figure 12
Locating the Ellipsis
6. In the Edit Literal Value for Execution window, in the Value box, replace the text with
1/1/2004.
Note: Recall that this value will be used to locate the quota extract file.
7. Click OK.
8. Select the Connection Managers tab.
9. Notice that project connection manager property values can be overridden. Do not modify any
of the property values.
10. To execute the package, click OK.
11. In the dialog window, notice the ID for the operation, and then click No.
Note: Each package execution generates a unique operation ID for logging purposes.
12. Use the steps in this task to configure the execution the Master package again, but with an
ETLDate parameter value of 1/1/2005. Do not execute the package.
13. Instead of executing the package immediately, click the Script button, and then select New
Query Editor Window.
Figure 13
Scripting the Package Execution
Note: Recall that there is no quota extract file for 2006. This package execution will fail.
Figure 14
Modifying the Parameter Value in the Script
Figure 15
Reviewing the Execution Information
Task 5 Finishing Up
In this task, you will close all open applications.
1. To close SQL Server Management Studio, on the File menu, select Exit.
2. If prompted to save changed items, click No.
3. To close SQL Server Business Intelligence Studio, on the File menu, select Exit.
4. If prompted to save changed items, click No.
5. Close Windows Explorer.
Summary
In this lab, you have explored the Populate DW Integration Services project designed to populate the
Adventure Works data warehouse. You explored the design of the packages and specifically the use of a
project connection manager and package parameters both being new features in Integration Services
for SQL Server 2012
Next you will created the SSIS Catalog and then deployed the Populate DW project to the catalog. Once
deployed you executed the Master package and reviewed the execution results using the dashboard
and standard reports.