ConnectionSettings.SecurePassword Property

Gets or sets the secure 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 SecureString SecurePassword { get; set; }

Property Value

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

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

Community Additions