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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MoreThanDoubledAuthor Commented:
Thanks
0
Jim HornMicrosoft SQL Server Developer, Architect, and AuthorCommented:
Thanks for the grade.  Good luck with your project.  -Jim
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.