SourceSite Property

DTS Programming

DTS Programming

SourceSite Property

The SourceSite property sets or returns the location from which the files will be transferred by a DTSFTPTask object.

Applies To
DTSFTPTask Object
Syntax

object.SourceSite [= string]

Part Description
object Expression that evaluates to a DTSFTPTask object
string Location from which the files will be transferred, either an Internet FTP site or a network directory

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT SourceSite(BSTR* pVal);

HRESULT SourceSite(BSTR pVal);

Remarks

If the SourceLocation property specifies an Internet site, the SourceSite property must be defined.

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

Set taskprops = task.Properties
taskprops("SourceSite") [= string]

Example

The following example sets the SourceSite property to a File Transfer Protocol (FTP) site name:

oCustTask.SourceSite = "ftp.microsoft.com"

See Also

SourceFilename Property

SourceLocation Property

SourcePassword (DTSFTPTask) Property

SourceUsername Property