I have a situation where I'd like to conditionally execute the first task in a package based on the contents of a user variable.
If user variable "Var1" is false I want to begin execution with the first task.
If "Var1" is true I want to begin execution at the second task.
My first thought of course was SequenceContainer, but the same issue would exist for the first task in a SequenceContainer.
Is there a way to do this?
Thanks!
To conditionally execute a task you would use a constraint with an expression on it, but you need two tasks (containers) to do this. The ideal answer is to use something that does nothing, but offers a start point for the constraint. A sequence container works rather well, just drop it on and collpase it (the arrow on the right-hand side of the header). You can then link that to the real task, nothing should go inside that sequence container.|||I have created a sample solution inline with Darren's suggeston to use 'Sequence Container' for placing the precedence condition @. http://mystutter.blogspot.com/2006/03/sql-server-integration-services.html
Please let me know your comments.
Thanks,
Loonysan
Thank you. Your example was perfect.
I found another solution as well. I created a Sequence Container, inside that I created another Sequence Container and my first task. I put an expression constraint between those. Then I linked the outer Sequence Container to the second task.
I appreciate the help.
No comments:
Post a Comment