다음을 통해 공유


ConnectionSettings.Password 속성

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

네임스페이스:  Microsoft.SqlServer.Management.Common
어셈블리:  Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)

구문

‘선언
<BrowsableAttribute(False)> _
Public Property Password As String 
    Get 
    Set
‘사용 방법
Dim instance As ConnectionSettings 
Dim value As String 

value = instance.Password

instance.Password = value
[BrowsableAttribute(false)]
public string Password { get; set; }
[BrowsableAttribute(false)]
public:
property String^ Password {
    String^ get ();
    void set (String^ value);
}
[<BrowsableAttribute(false)>]
member Password : string with get, set
function get Password () : String 
function set Password (value : String)

속성 값

유형: 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.

SQL Server 인스턴스에 연결

참고 항목

참조

ConnectionSettings 클래스

Microsoft.SqlServer.Management.Common 네임스페이스