Answered by:
Getting return value from package

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?
qeqwTuesday, April 6, 2010 7:54 PM
Answers
-
See: http://msdn.microsoft.com/en-us/library/ms403355.aspx#agent for an example.
Regards,
Ivo- Proposed as answer by Nik - Shahriar Nikkhah Tuesday, April 6, 2010 8:46 PM
- Marked as answer by Bob Bojanic Monday, April 12, 2010 5:39 PM
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 AMAnswerer
All replies
-
See: http://msdn.microsoft.com/en-us/library/ms403355.aspx#agent for an example.
Regards,
Ivo- Proposed as answer by Nik - Shahriar Nikkhah Tuesday, April 6, 2010 8:46 PM
- Marked as answer by Bob Bojanic Monday, April 12, 2010 5:39 PM
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 AMAnswerer