Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 SSIS Branching

Author  Topic 

saiabhiram
Starting Member

17 Posts

Posted - 2010-05-12 : 12:31:28

Hello,

I have an SSIS package. I have a parameter or variable and if the variable is set to 'Y' the SSIS package needs to run an execute Sql task. If 'N' it needs to go thru some data flow tasks. What is the best way to approach this problem.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-05-12 : 12:36:37
you can use precedence constraint with constraint and expression option.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

saiabhiram
Starting Member

17 Posts

Posted - 2010-05-12 : 12:43:22
Thanks for your reply so much. But, sorry, I am quite a novice to SSIS. Can you be more elaborate for me. If you could do that, that would be great!!
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-05-12 : 12:58:40
something like this

http://blogs.msdn.com/mattm/archive/2006/10/30/using-expression-based-constraints.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

saiabhiram
Starting Member

17 Posts

Posted - 2010-05-12 : 17:15:34
Thanks so much. It works now.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-05-13 : 10:10:42
welcome

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -