I have to create a Windows Form application which would modify the connection sring values present in dts config file and then execute the package with this updated dts config file.
Even if I am adding following line of code,it is not taking the updated config file.
string packagePath = ConfigurationSettings.AppSettings["packagepath"].ToString();
Microsoft.SqlServer.Dts.Runtime.Application app = new Microsoft.SqlServer.Dts.Runtime.Application();
Package package = app.LoadPackage(packagePath, null);
package.ImportConfigurationFile(configPath);
DTSExecResult dtsResult = package.Execute();
Please help how to execute the package with modified dts config.