DTSMessagePackageID Property

DTS Programming

DTS Programming

DTSMessagePackageID Property

The DTSMessagePackageID property sets or returns the globally unique identifier (GUID) of the Data Transformation Services (DTS) package that is the source of the message this DTSMessageQueueTask object is to receive.

Applies To
DTSMessageQueueTask Object
Syntax

object.DTSMessagePackageID [= GUID]

Part Description
object Expression that evaluates to a DTSMessageQueueTask object
GUID The GUID of the package that is the message source

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetDTSMessagePackageID(BSTR* pVal);

HRESULT SetDTSMessagePackageID(BSTR pVal);

Remarks

The DTSMessagePackageID affects only DTSMessageQueueTask objects that are message receivers.

To determine the package ID of a DTS package, open the package in DTS Designer. In the Package/Properties dialog box, click the General tab.

The syntax of GUIDs is:

{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}

where X represents hexadecimal digits. The groupings are 8, 4, 4, 4, and 12 digits. The curly brackets are required. Spaces cannot be embedded for readability.

The property also can be referenced through the Properties collection of the Task object with the following code:

Set taskprops = task.Properties
taskprops("DTSMessagePackageID") [= GUID]

Example

The following example assigns a GUID string to the DTSMessagePackageID property:

oCustTask.DTSMessagePackageID = _
      "{4E078447-0EFE-11D3-8DFE-00C04FD7B78D}"

See Also

DTSMessageLineageID Property

DTSMessageVersionID Property