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)

public string Password { get; set; }

Property Value

Type: 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.