ConnectionSettings.Password Property

Gets or sets the password used with the logon to establish a connection with the server when SQL Server Authentication is used.

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)


<BrowsableAttribute(False)> _
Public Property Password As String
Dim instance As ConnectionSettings
Dim value As String

value = instance.Password

instance.Password = value
public string Password { get; set; }
property String^ Password {
    String^ get ();
    void set (String^ value);
member Password : string with get, set
function get Password () : String
function set Password (value : String)

Property Value

Type: System.String
A String value that specifies the password that is required when you are using SQL Server Authentication.


The password property does not require a value when Windows Authentication is used.