The ExecuteInMainThread property specifies whether the step executes in the main thread of the Data Transformation Services (DTS) package or a worker thread.
object.ExecuteInMainThread [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Whether the step executes in the main thread of the package |
Boolean
Read/write
HRESULT GetExecuteInMainThread(VARIANT_BOOL *pRetVal);
HRESULT SetExecuteInMainThread(VARIANT_BOOL NewValue);
The default is FALSE.
If you are implementing package event handlers in Microsoft® Visual Basic®, set ExecuteInMainThread to TRUE for all steps in the package.