Please also have a look in our OnlineHelp for further information.

In this article we want to start an SSIS package within .NET First we need a reference to Microsoft.SqlServer.Dts.Runtime. This dll is installed with the Client Tools SDK when setting up the SQL Server.

Then we are able to call the package with the following lines of code. Optionally we can pass values to the variables in the packages.

using Microsoft.SqlServer.Dts.Runtime;
namespace CallPackage
    class Program
        static void Main(string[] args)
            Application app = new Application();
            Package package = null;
            package  = app.LoadPackage(@"C:\Packages\PackageTest.dtsx",null);          
            package.Variables["User::FLIGHTVAR"].Value = "ONLYAA"; //Optional, passing variables
            DTSExecResult result = package.Execute();

If the package runs sucessfully the DTSExecResult is “Successful”, otherwise it’s “Failure”.