Dynamically Set SSIS Configuration Table Connection

Is there a way to dynamically set the connection for the configuration table.  For instance, if I wanted to change where all of the packages were looking for thier SSISConfiguration settings instead of looking on the (local) server.database that was setup in the package configuration.  This way I can point all packages to one server and manage SSISConfiguration tables for DEV, QA, and PROD from there.  If something happens and I have to move the SSISConfiguration tables to another server, is it possible to make the change in one place instead of having to open all of the packages and manually updating the connection to the SSISConfiguration table?

What would I need to do to accomplish this?

Thanks
ltrain2015Asked:
Who is Participating?
 
carsRSTConnect With a Mentor Commented:
1.  Set a package variable to hold a connection string - make the data type a string and make it a real connection string if you have validation on (see example below)
2.  Within the SSIS package, you will need to dynamically set the variable of the connection string to the new server/database.  You could store that in a database, file, etc... just read it and store to the variable.
3.  Under connection managers, find the connection you want to be dynamic.  Set it's "Expressions" to the variable you created in step 1.

For example, if your variable is named "varConnectionstring" then you would set the following in the ConnectionString box (again, under properties) under the Expressions section:
@[User::varConnectionstring]


SAMPLE CONNECTION STRING FOR SQL SERVER:
Data Source=(server);User ID=sa;Initial Catalog=(database);Pwd=pw;Provider=SQLNCLI.1;Persist Security Info=True;Auto Translate=false;
0
 
ltrain2015Author Commented:
Ahhh makes sense.  Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.