I am writing an application that programatically imports user selected flat files into a database (with other logic, so I really have to use SSIS). I have the list of SSIS packages in a table and load the package and execute it in code. However my SSIS packages are using design time parameters to lookup their configuration in another database server (QA, in this case) rather than runtime config parameters.
How can I override the connection string to use one that I would supply in code?
Here is a sample of the source I am using
Dim app As New Microsoft.SqlServer.Dts.Runtime.Application
Dim pkg As Microsoft.SqlServer.Dts.Runtime.Package = New Microsoft.SqlServer.Dts.Runtime.Package()
pkg = app.LoadFromSqlServer(packageName, serverName, Nothing, Nothing, Nothing)
pkg(0).ConfigurationType = DTSConfigurationType.ISqlServer
Dim result = pkg.Execute