The SourcePassword property sets or returns the password that will be used to connect to the Internet File Transfer Protocol (FTP) site by a DTSFTPTask object.
object.SourcePassword [= value]
Part | Description |
---|---|
object | Expression that evaluates to a DTSFTPTask object |
value | Password that will be used to connect to the Internet FTP site |
String
Read/write
HRESULT SourcePassword(BSTR* pVal);
HRESULT SourcePassword(BSTR pVal);
Typically, if "anonymous" is used for the user name when connecting to the FTP site, the e-mail address of the user is used as the password.
The property also can be referenced through the Properties collection of the Task object with the following code:
Set taskprops = task.Properties
taskprops("SourcePassword") [= value]
This example sets the SourcePassword property to a string.
oCustTask.SourcePassword = "[email protected]"