Hi,
It's quite simple, first you have to load the package and then execute it - that's it 🙂
Example:
Microsoft.SqlServer.Dts.Runtime.Application app =
new Microsoft.SqlServer.Dts.Runtime.Application();
Package package;
...
package = app.LoadPackage(packageFile, null);
DTSExecResult result = package.Execute(null, null, null, null, null);
if (result != DTSExecResult.Success)
{
foreach (DtsError error in package.Errors)
{
this.LogError(error, error.ErrorCode, error.SubComponent, error.Description);
}
package.Errors.Clear();
}
HTH
*-- robert.oh. --*