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.
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 |
String
Read/write
HRESULT SourceUsername(BSTR* pVal);
HRESULT SourceUsername(BSTR pVal);
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]
The following example sets the SourceUsername property to a string:
oCustTask.SourceUsername = "anonymous"