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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

carsRSTCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ltrain2015Author Commented:
Ahhh makes sense.  Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.