SSIS: execute first task if condition met else skip to next

后端 未结 7 1952
忘了有多久
忘了有多久 2021-01-11 17:46

I am getting to know SSIS, I apologize if the question is too simple.

I got a set of tasks inside a foreach-loop-container.
T

7条回答
  •  终归单人心
    2021-01-11 17:59

    How about a simple solution instead of some of the more complex ones that have already been given. For the task you want to conditionally skip, add an expression to the disabled property. Any expression that produces a true or false result will work, so for the question example you could use:

    ISNULL(@[User::MY_VAR]) || @[User::MY_VAR]==""
    

    The only downside is that it may not as visible as some of the other solutions but it is far easier to implement.

提交回复
热议问题