M
Mike P
How do you execute a DTS package from C#? I have some code that doesn't
work because the structured storage file cannot be found :
[MTAThread]
static void Main(string[] args)
{
// TODO: Add code to start application here
Package2Class package = new Package2Class();
object pVarPersistStgOfHost = null;
//loadfromsqlserver
package.LoadFromStorageFile(
"c:\\TransferTxtFileToTable.dts",
null,
null,
null,
"Test Package",
ref pVarPersistStgOfHost);
package.Execute();
package.UnInitialize();
package = null;
}
Has anybody else had this problem, and does anybody know how to solve
it? Any help would be really appreciated.
Cheers,
Mike
work because the structured storage file cannot be found :
[MTAThread]
static void Main(string[] args)
{
// TODO: Add code to start application here
Package2Class package = new Package2Class();
object pVarPersistStgOfHost = null;
//loadfromsqlserver
package.LoadFromStorageFile(
"c:\\TransferTxtFileToTable.dts",
null,
null,
null,
"Test Package",
ref pVarPersistStgOfHost);
package.Execute();
package.UnInitialize();
package = null;
}
Has anybody else had this problem, and does anybody know how to solve
it? Any help would be really appreciated.
Cheers,
Mike