VersionID Property

DTS Programming

DTS Programming

VersionID Property

The VersionID property specifies the globally unique identifier (GUID) of this version of the Data Transformation Services (DTS) package.

Applies To
ExecutePackageTask Object PackageLineage Object
Package Object PackageLogRecord Object
Package2 Object SavedPackageInfo Object
PackageInfo Object  
Syntax

object.VersionID

Part Description
object Expression that evaluates to an object in the Applies To list

Data Type

String

Modifiable

Read-write for the ExecutePackageTask object. Read-only for the other objects.

Prototype (C/C++)

HRESULT GetVersionID(BSTR *pRetVal);

Remarks

For the ExecutePackageTask object, if the VersionID is not specified, the most recent version of the package is run. The PackageID does not need to be specified if the VersionID is specified because VersionID uniquely identifies both package and version.

To determine the version ID of a package, open the package in DTS Designer, and then 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.

See Also

PackageID Property