Gets or sets the password to use when connecting.
[Visual Basic] Public Property Password As String [C#] public string Password {get; set;} [C++] public: __property String* get_Password(); public: __property void set_Password(String*); [JScript] public function get Password() : String; public function set Password(String);
The password to use when connecting. The default value is an empty string.
The Password property overwrites the cooresponding property within the connection string.
Note This property is read-only while the connection is open.
The following example shows how to create a connection and set many of its properties.
ADOConnection Class | ADOConnection Members | System.Data.ADO Namespace | ConnectionTimeout | Database | IsolationLevel | DataSource | UserID | ConnectionString