Share via


Login.ChangePassword 메서드 (String, Boolean, Boolean)

Changes the password for the login account.

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

구문

‘선언
Public Sub ChangePassword ( _
    newPassword As String, _
    unlock As Boolean, _
    mustChange As Boolean _
)
‘사용 방법
Dim instance As Login 
Dim newPassword As String 
Dim unlock As Boolean 
Dim mustChange As Boolean

instance.ChangePassword(newPassword, _
    unlock, mustChange)
public void ChangePassword(
    string newPassword,
    bool unlock,
    bool mustChange
)
public:
void ChangePassword(
    String^ newPassword, 
    bool unlock, 
    bool mustChange
)
member ChangePassword : 
        newPassword:string * 
        unlock:bool * 
        mustChange:bool -> unit
public function ChangePassword(
    newPassword : String, 
    unlock : boolean, 
    mustChange : boolean
)

매개 변수

  • unlock
    유형: System.Boolean
    A Boolean value that specifies whether to unlock the login account's access to the instance of SQL Server.If True, the login account is given access to the instance of SQL Server.If False, the login account remains locked out of the instance of SQL Server.
  • mustChange
    유형: System.Boolean
    A Boolean value that specifies whether the login account must change the password.If True, the password must be changed again.If False, the password will not need to be changed.

사용자, 역할 및 로그인 관리

참고 항목

참조

Login 클래스

ChangePassword 오버로드

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

관련 자료

보안 주체(데이터베이스 엔진)

CREATE LOGIN(Transact-SQL)