Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

HOW FAIL A PACKAGE USING SCRIPT TAST WITH AN ERROR MESSAGE

$
0
0

Hi all

We are using ssms 2005 in our project.

I have created a package which has a precedence constraint condition.

I have given two precedence contraint from a execute sql task.

(First precedence constraint)->Lets say if the condition 1 is satisfied the package should succeed, which is functioning correctly.

(Second precedence constraint) ->if this condition fails  I want a script task which simply fails the package with an error message 'this package failed due to wrong row count', which should come in the 'output' window .

Could  some one help me with the vb code for the script task... Let me know if  I should provide more info on the scenario.

Regards

Praveen..


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>