ExecuteInMainThread Property

DTS Programming

DTS Programming

ExecuteInMainThread Property

The ExecuteInMainThread property specifies whether the step executes in the main thread of the Data Transformation Services (DTS) package or a worker thread.

Applies To
Step Object Step2 Object
Syntax

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

Data Type

Boolean

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetExecuteInMainThread(VARIANT_BOOL *pRetVal);

HRESULT SetExecuteInMainThread(VARIANT_BOOL NewValue);

Remarks

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.

See Also

DTS Package Events in Visual Basic