Microsoft
Software
Hardware
Network
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/m
s141682.as
px
Random Solutions
linking DBF with filename size greater than 8 characters in Access
SQL Query
extend DataGridViewColumn
Exchage Error SPAM question.
Compile Error: Variable not defined
Using Range(Cells(r1,c1),Cells(r<wbr />2,c2)) instead of Range("A1:B2")
Should I use .NET Visual, ASP.NET, Silverlight, WCF and what database?
Convert hyperlinks from '=HYPERLINK()' to 'embedded' links
MS Access Filter all records on on a Form
excel-vba code to change folder properties