The VersionID property specifies the globally unique identifier (GUID) of this version of the Data Transformation Services (DTS) package.
object.VersionID
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
String
Read-write for the ExecutePackageTask object. Read-only for the other objects.
HRESULT GetVersionID(BSTR *pRetVal);
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.