Script Task

I am writing a SSIS package and using the SQLTaks to run a series of queries that is being used to validate data.  Keep in mind that the queries wont fail (give an error).
My intention is to run these queries and if one of my queries returns a "false" validation check, then i would like for the constraint on that script task to do something else.  So my question is how do i get the script task to perform two different functions: One if the validation is good (true) continue down one path and two if the validation fails (false) then go down a completly different path?

Attached is a diagram to give you a visual of what i am trying to do.
script-task.bmp
MoreThanDoubledAsked:
Who is Participating?
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
>if one of my queries returns a "false" validation check
Have your Script Task store the result of this validation check in a variable.
Then the next control after Script Tasks should be a Conditional Split, where you test the variable, and have multiple actions/paths for multiple values.
0
 
MoreThanDoubledAuthor Commented:
Thanks
0
 
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Thanks for the grade.  Good luck with your project.  -Jim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.