November 18, 2016 at 4:55 pm
Years ago I created an SSIS Task to check for Null or empty string and the fail Package.
I seem to recall that I set an output parameter with a value and based on the package succeed or failed.
If it failed I created a task that called a Stored Procedure to write to an error log and another task to send an e-mail.
I do not remember the output/ return code or whatever I did.
Could someone please provide guidance?
Thank you.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 18, 2016 at 5:04 pm
I remember now that I created a script task to check the output variable and succeed or fail the package.
I believe?
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
November 21, 2016 at 9:31 am
I seem to recall having to create a variable.
Then in the EXEC SQL Task write to result set and do something with the parameter mapping.
There I created a Script task and based on the values fail or succeed the Package.
I believe that there is an example on MSQLTips.com.
Any ideas?
Thank you.
For better, quicker answers on T-SQL questions, click on the following...
http://www.sqlservercentral.com/articles/Best+Practices/61537/
For better answers on performance questions, click on the following...
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply