IDTSOutput100.HasSideEffects 属性

定义

获取或设置一个值,该值指示当数据流组件的输入未附加到上游组件以及数据流任务的 RunInOptimizedMode 属性为 true 时,是否应删除或保留在数据流任务的执行计划中。

public:
 property bool HasSideEffects { bool get(); void set(bool value); };
[System.Runtime.InteropServices.DispId(107)]
public bool HasSideEffects { [System.Runtime.InteropServices.DispId(107)] get; [System.Runtime.InteropServices.DispId(107)] set; }
[<System.Runtime.InteropServices.DispId(107)>]
[<get: System.Runtime.InteropServices.DispId(107)>]
[<set: System.Runtime.InteropServices.DispId(107)>]
member this.HasSideEffects : bool with get, set
Public Property HasSideEffects As Boolean

属性值

如果组件执行对数据流引擎不可见的自定义操作,则为 true;否则为 false。

属性

注解

When you set the HasSideEffects property of an IDTSOutput100 to true, you are indicating to the data flow engine that the component to which the output belongs performs custom actions that are not visible to the engine. 因此,当数据流任务的属性为trueRunInOptimizedMode,组件将不会从执行计划中删除。

例如,源组件没有输入,因此,如果 HasSideEffects 输出的属性不是 true,数据流引擎可以得出结论,源没有执行任何操作,并将其从执行计划中删除。

目标 HasSideEffects 组件的属性 IDTSInput100 始终位于 true 没有输出) 的目标组件 (上, HasSideEffects 并且源 (组件的属性 IDTSOutput100 始终位于 true 没有输入) 的源组件上。 这两个属性通常在转换组件上为 false。

但是 HasSideEffects ,RowCount 转换的输入属性设置为 true。 因此,RowCount 不需要将其输出附加到下游组件。 因此,它可以在包调试期间用作临时目标,而无需保存任何数据。

适用于