string strSourceConn = @"c:\Documents and Settings\C\Desktop\File to Place Order\FEB 2011 ORDER 1.txt"; string strDestConn = System.Configuration.ConfigurationManager.AppSettings["SQLDB"]; pkg = app.LoadPackage(pkgLocation, null); pkg.Variables["strSourceFile"].Value = strSourceConn; pkg.Variables["dConn"].Value = strDestConn; pkgResults = pkg.Execute(); What I have tried: Code as below: <pre>string strSourceConn = @"c:\Documents and Settings\C\Desktop\File to Place Order\FEB 2011 ORDER 1.txt"; string strDestConn = System.Configuration.ConfigurationManager.AppSettings["SQLDB"]; string pkgLocation = @"C:\Package1.dtsx"; Package pkg; Microsoft.SqlServer.Dts.Runtime.Application app; DTSExecResult pkgResults; app = new Microsoft.SqlServer.Dts.Runtime.Application(); pkg = app.LoadPackage(pkgLocation, null); pkg.Variables["strSourceFile"].Value = strSourceConn; pkg.Variables["dConn"].Value = strDestConn; pkgResults = pkg.Execute(); Response.Write(pkg.ExecutionResult);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)