SourceUsername Property
From DTS Programming
DTS Programming
SourceUsername Property
The SourceUsername property sets or returns the user name that will be used to connect to the Internet File Transfer Protocol (FTP) site by a DTSFTPTask object.
Applies To
| DTSFTPTask Object |
Syntax
object.SourceUsername [= value]
| Part | Description |
|---|---|
| object | Expression that evaluates to a DTSFTPTask object |
| value | User name that will be used to connect to the Internet FTP site |
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
HRESULT SourceUsername(BSTR* pVal);
HRESULT SourceUsername(BSTR pVal);
Remarks
Typically, "anonymous" can be used for the user name when establishing a read-only connection to an Internet FTP site, such as by the DTSFTPTask.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("SourceUsername") [= value]
Example
The following example sets the SourceUsername property to a string:
oCustTask.SourceUsername = "anonymous"