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

后端 未结 7 1939
忘了有多久
忘了有多久 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 18:05

    there is no need to create a "script" I think the best (and simpler) approach is to add a blank script task inside your loop container before your "first task", drag the green arrow from it to your "first task" (which obviously will become the second) and use the precedence constraint to do the check.

    To do that, double click the arrow, select "expression" on the "evaluation operation" and write your expression. After hitting OK the arrow will become blue indicating that it isnt a simple precedence constraint, it has a expression assigned to it.

提交回复
热议问题