SourcePassword (DTSFTPTask) Property
From DTS Programming
DTS Programming
SourcePassword (DTSFTPTask) Property
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.
Applies To
| DTSFTPTask Object |
Syntax
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 |
Data Type
String
Modifiable
Read/write
Prototype (C/C++)
HRESULT SourcePassword(BSTR* pVal);
HRESULT SourcePassword(BSTR pVal);
Remarks
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]
Example
This example sets the SourcePassword property to a string.
oCustTask.SourcePassword = "user@microsoft.com"