locked
Getting return value from package RRS feed

  • Question

  • I have an SSIS package that imports data into a table.

    My programmer wants to be able to call my SSIS package from his code and then he needs to recieve a value as to if the package was succesful or not.

    How do you do that?


    qeqw
    Tuesday, April 6, 2010 7:54 PM

Answers

  • Tuesday, April 6, 2010 7:58 PM
  •  Application app = new Application();
     Package pkg = app.LoadPackage(PackageName, null);
     pkg.Execute()

    then check pkg.errors to see if there is any error during execution.

     

    You can read the following articles for the details

    http://www.codeproject.com/KB/database/CallSSISFromCSharp.aspx

    • Marked as answer by Bob Bojanic Monday, April 12, 2010 5:40 PM
    Wednesday, April 7, 2010 12:40 AM
    Answerer

All replies

  • Tuesday, April 6, 2010 7:58 PM
  •  Application app = new Application();
     Package pkg = app.LoadPackage(PackageName, null);
     pkg.Execute()

    then check pkg.errors to see if there is any error during execution.

     

    You can read the following articles for the details

    http://www.codeproject.com/KB/database/CallSSISFromCSharp.aspx

    • Marked as answer by Bob Bojanic Monday, April 12, 2010 5:40 PM
    Wednesday, April 7, 2010 12:40 AM
    Answerer