The ServerName property sets or returns the name of the server on which the Data Transformation Services (DTS) package to be run by an ExecutePackageTask object is located.
object.ServerName [= name]
Part | Description |
---|---|
object | Expression that evaluates to an ExecutePackageTask object |
name | Name of the server on which the DTS package to be run is located |
String
Read/write
HRESULT ServerName(BSTR* pRetVal);
HRESULT ServerName(BSTR pRetVal);
If ServerName property is not provided, the local computer is used; you can also specify "(local)".
This property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("PackagePassword") [= password]