如何在ssis包中执行2个sql任务之间做一个中间步骤

时间:2017-09-08 19:58:19

标签: sql-server ssis

我有一个看起来像这样的包:

enter image description here

当我在for循环和左侧的SQL Task之间添加约束时,它会在中间的execute sql任务处停止包。

像这样:

enter image description here

如何使这项工作?我尝试了很多方法但没有任何工作。

1 个答案:

答案 0 :(得分:1)

将其中一个约束设置为' 逻辑OR '。 您有多个约束导致' Sql任务 - 设置ExecutionLock'。如果您使用默认值' 逻辑AND '保留约束,则两个路径都必须求值为true才能执行此任务。

enter image description here

enter image description here