Step 4: Deploying the Lesson 6 Package
Applies To: SQL Server 2016 Preview
Deploying the package involves adding the package to the SSISDB catalog in Integration Services on an instance of SQL Server. In this lesson you will add the Lesson 6 package to the SSISDB catalog, set the parameter, and execute the package. For this lesson you will use SQL Server Management Studio to add the Lesson 6 package to the SSISDB catalog, and deploy the package. After deploying the package you will modify the parameter to point to a new location then execute the package.
In this lesson you will:
Add the package to the SSISDB catalog in the SSIS node in SQL Server.
Deploy the package.
Set the package parameter value.
Execute the package in SSMS.
To Locate or add the the SSISDB catalog
Click Start, point to All Programs, point to Microsoft SQL Server 2012, and then click SQL Management Studio.
On the Connect to Server dialog box, verify the default settings, and then click Connect. To connect, the Server name box must contain the name of the computer where SQL Server is installed. If the Database Engine is a named instance, the Server name box should also contain the instance name in the format <computer_name>\<instance_name>.
In Object Explorer expand Integration Services Catalogs.
If there are no catalogs listed under Integration Services Catalogs then add the SSISDB catalog.
To Add the SSISDB catalog, right-click Integration Services Catalogs and click Create Catalog.
On the Create Catalog dialog box select Enable CLR Integration.
In the Password box, type a new password then type it again in the Retype Password box. Be sure to remember the password you type.
Click OK to add the SSISDB catalog.
To add the package to the SSISDB catalog
In Object Explorer, right-click SSISDB and click Create Folder.
In the Create Folder dialog box type SSIS Tutorial in the Folder name box and click OK.
Expand the SSIS Tutorial folder, right-click Projects, and click Import Packages.
On the Integration Services Project Conversion Wizard Introduction page click Next.
On the Locate Packages page, ensure that File system is selected in the Source list, then click Browse.
On the Browse For Folder dialog box, browse to the folder containing the SSIS Tutorial project, then click OK.
On the Select Packages page you should see all six packages from the SSIS Tutorial. In the Packages list, select Lesson 6.dtsx, then click Next.
On the Select Destination page, type SSIS Tutorial Deployment in the Project Name box then click Next.
Click Next on each of the remaining wizard pages until you get to the Review page.
On the Review page, click Convert.
When the conversion completes, click Close.
When you close the Integration Services Project Conversion Wizard, SSIS displays the Integration Services Deployment Wizard. You will use this wizard now to deploy the Lesson 6 package.
On the Integration Services Deployment Wizard Introduction page, review the steps for deploying the project, then click Next.
On the Select Destination page verify that the server name is the instance of SQL Server containing the SSISDB catalog and that the path shows SSIS Tutorial Deployment, then click Next.
On the Review page, review the Summary then click Deploy.
When the deployment completes, click Close.
In Object Explorer, right-click Integration Services Catalogs and click Refresh.
Expand Integration Services Catalogs then expand SSISDB. Continue to Expand the tree under SSIS Tutorial until you have completely expanded the project. You should see Lesson 6.dtsx under the Packages node of the SSIS Tutorial Deployment node.
To verify that the package is complete, right-click Lesson 6.dtsx and click Configure. On the Configure dialog box, select Parameters and verify that there is an entry with Lesson 6.dtsx as the Container, VarFolderName as the Name and the path to New Sample Data as the value, then click Close.
Before continuing create a new sample data folder, name it Sample Data Two, and copy any three of the original sample files into it.
To create and populate a new sample data folder
In Windows Explorer, at the root level of your drive (for example, C:\), create a new folder named Sample Data Two.
Open the c:\Program Files\Microsoft SQL Server\110\Samples\Integration Services\Tutorial\Creating a Simple ETL Package\Sample Data folder and then copy any three of the sample files from the folder.
In the New Sample Data folder, paste the copied files.
To change the package parameter to point to the new sample data
In Object Explorer, right click Lesson 6.dtsx and click Configure.
On the Configure dialog box, change the parameter value to the path to Sample Data Two. For example C:\Sample Data Two if you placed the new folder in the root folder on the C drive.
Click OK to close the Configure dialog box.
To test the Lesson 6 package deployment
In Object Explorer, right click Lesson 6.dtsx and click Execute.
On the Execute Package dialog box, click OK.
On the message dialog box click Yes to open Overview Report.
The Overview report for the package is displayed showing the name of the package and a status summary. The Execution Overview section shows the result from each task in the package and the Parameters Used section shows the names and values of all parameters used in the package execution, including VarFolderName.