Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2005
»
SQL Server 2005 Integration Services
»
how to stop the package based on a condition?...
how to stop the package based on a condition?
Rate Topic
Display Mode
Topic Options
Author
Message
Sachin Vaidya
Sachin Vaidya
Posted Monday, March 04, 2013 2:38 AM
Valued Member
Group: General Forum Members
Last Login: Wednesday, May 01, 2013 12:59 AM
Points: 61,
Visits: 197
Hi,
Based on the value of a variabale getting set, I want to stop my SSIS package (successfully) without going to next tasks within the package. Can this be done? Please provide your inputs.
Example:
I have a stored procedure getting executed in SSIS execute SQL task. The value of output parameter of this stored procedure is getting stored in a SSIS varaible. If the value of this variable comes out as 1 then package should proceed further but if it gets set to 0, then package should stop there itself.
Regards,
Sachin
Post #1426138
joeroshan
joeroshan
Posted Monday, March 04, 2013 2:46 AM
Mr or Mrs. 500
Group: General Forum Members
Last Login: Today @ 2:44 AM
Points: 573,
Visits: 1,163
You are probably looking for constraint expression.
Check here
http://blogs.msdn.com/b/mattm/archive/2006/10/30/using-expression-based-constraints.aspx
-- Roshan Joe
*******************************************
Jeff Moden -Forum Etiquette: How to post data/code on a forum to get the best help
Custom cleanup script for backups
Post #1426140
Pulivarthi Sasidhar
Pulivarthi Sasidhar
Posted Monday, March 04, 2013 2:59 AM
SSC Eights!
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 5:30 AM
Points: 870,
Visits: 522
For Next Step execution based on result from SP:-
Double click on the Connection Arrow as success and constraint as follows
@SSISVariable==1
Just leave with above condition
if condition not satisfied it completes the Package & gives success results.
If the condition validated it goes to next Task .
Post #1426149
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.