IDTSOutput100.HasSideEffects Propiedad
Gets or sets a value that indicates whether a data flow component should be removed or remain in the execution plan of a data flow task when its input is not attached to an upstream component and when the RunInOptimizedMode property of the Data Flow task is true.
Espacio de nombres: Microsoft.SqlServer.Dts.Pipeline.Wrapper
Ensamblado: Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)
Sintaxis
'Declaración
Property HasSideEffects As Boolean
Get
Set
'Uso
Dim instance As IDTSOutput100
Dim value As Boolean
value = instance.HasSideEffects
instance.HasSideEffects = value
bool HasSideEffects { get; set; }
property bool HasSideEffects {
bool get ();
void set (bool value);
}
abstract HasSideEffects : bool with get, set
function get HasSideEffects () : boolean
function set HasSideEffects (value : boolean)
Valor de la propiedad
Tipo: System.Boolean
true if the component performs custom actions that are not visible to the data flow engine; otherwise, false.
Comentarios
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. As a result, the component will not be removed from the execution plan when the RunInOptimizedMode property of the Data Flow task is true.
For example, a source component does not have an input, so if the HasSideEffects property of its output was not true, the data flow engine could conclude that the source performed no action, and remove it from the execution plan.
The HasSideEffects property of an IDTSInput100 will always be true on a destination component (which has no output), and the HasSideEffects property of an IDTSOutput100 will always be true on a source component (which has no input). Both properties will usually be false on a transformation component.
However the HasSideEffects property of the input of the RowCount transformation is set to true. As a result, the RowCount does not require that its output be attached to a downstream component. Thus it can be used during package debugging as a temporary destination without the need to save any data.