Hi all
I have created a very simple package.
It has a OLE DB Source, a Sort and a OLE DB Destination.
When I run it in the Integration Designer in Visual Studio, it works fine.
But when I like to execute the package in another C# Project, I get this error:
"To run a SSIS package outside of SQL Server Data Tools you must install Sort of Integration Services or higher."
When I remove the Sort Task, it works.
Here is my C# code:
*********************************************************************
MyEventListener eventListener = new MyEventListener();
Microsoft.SqlServer.Dts.Runtime.Package _Package;
Microsoft.SqlServer.Dts.Runtime.Application _Application;
Microsoft.SqlServer.Dts.Runtime.DTSExecResult _DTSExecResult;
_Application = new Microsoft.SqlServer.Dts.Runtime.Application();
_Package = _Application.LoadPackage(@"...\Package.dtsx", eventListener, true);
_DTSExecResult = _Package.Execute(null, null, eventListener, null, null);
System.Windows.Forms.MessageBox.Show(_DTSExecResult.ToString());
*********************************************************************
Thanks and best regards
Frank