PackageName Property

DTS Programming

DTS Programming

PackageName Property

The PackageName property sets or returns the name of the Data Transformation Services (DTS) package.

Applies To
ExecutePackageTask Object SavedPackageInfo Object
Syntax

[name =] object.PackageName

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

Data Type

String

Modifiable

Read/write for the ExecutePackageTask object. Read-only for the others.

Prototype (C/C++)

HRESULT GetPackageName(BSTR *pRetVal);

Remarks

For the ExecutePackageTask object, the PackageName property does not need to be set if either the PackageID or VersionID properties are specified or there is only one package in its containing file.

For the ExecutePackageTask object, this property also can be referenced through the Properties collection of the Task object with the following code:

Set taskprops = task.Properties
taskprops("PackageName") [= name]

See Also

PackageID Property

VersionID Property