The Password property specifies the password to use when making the connection.
object.Password [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | Password to use |
String
Read/write
HRESULT GetPassword(BSTR *pRetVal);
HRESULT SetPassword(BSTR NewValue);
Use the Password property in conjunction with the UserID property to make the connection. You must provide values for Password and UserID unless UseTrustedConnection is TRUE.
Note The recommended way to connect to an instance of Microsoft® SQL Server™ is to use Windows Authentication instead of SQL Server Authentication. Set UseTrustedConnection to TRUE to use Windows Authentication.