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

后端 未结 7 1949
忘了有多久
忘了有多久 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:01

    I would create a For Loop Container around the task that needs the condition with the following conditions (@iis the loop counter, @foo is your user variable that you want to test):

    1. InitExpression: @i=0
    2. EvalExpression: @i<1 && !ISNULL(@Foo) && @Foo!=""
    3. AssignExpression: @i=@i+1

提交回复
热议问题