|
Question : SSIS: Using a parameter for connection string
|
|
We are developing an IS package within a development environment. Is it possible to use a parameter or variable for the connection string for a task? We need to do this so that when migrating from dev to test to load to prod we would not have to change the connection string for each migration.
We are using SS08.
Thanks in advance!!
|
|
Answer : SSIS: Using a parameter for connection string
|
|
Of course you can use Parameters, you need to create variable in package scope. just right click on control flow and select variable. you can pass variables from outside of package. every connection manager that you use in ssis have a expressions property , this expression has ability to set some of properties dynamically like connection string. you can set this connection string with your variable.
but there is another way , simpler and more reliable than your suggestion. SSIS suggested to use SSIS package configuration files. this configuration can be a xml file, or other types, you can put your connection string in this file, and everytime you need to more your package just you need to modify this xml file.
http://msdn.microsoft.com/en-us/library/ms141682.aspx
|
|
|
|