Wednesday, May 20, 2015

Connection Managers using Parameters

This document explains how to use parameters with connection managers, so that we can build a ETL package dynamic database connections. In this example, we will see how we can use Server Name, Login Name, Password and default database.

Step 1: Set up Project Parameters for the Connection Manager. From the Solution Explorer Select the Project and Project.params, double click to open or select open from the menu.




Step 2: Create three variables as shown in the picture

Step 3: Now Right click on the connection from the connection managers tab that you want to change, right click and from the menu choose Parameterize
Step 4: A dialog box opens for parameters and select the property drop down to select the parameter you want to change, in this case I am going to choose the server, and then use an existing parameter to utilize my previously created variable and then click OK. 

Step 5: Do the same for other variables.

No comments:

Post a Comment