ServerConnection.ChangePassword 메서드 (SecureString)
표준 인증에 사용되는 로그인 암호를 변경합니다.
네임스페이스: Microsoft.SqlServer.Management.Common
어셈블리: Microsoft.SqlServer.ConnectionInfo(Microsoft.SqlServer.ConnectionInfo.dll)
구문
‘선언
Public Sub ChangePassword ( _
newPassword As SecureString _
)
‘사용 방법
Dim instance As ServerConnection
Dim newPassword As SecureString
instance.ChangePassword(newPassword)
public void ChangePassword(
SecureString newPassword
)
public:
void ChangePassword(
SecureString^ newPassword
)
member ChangePassword :
newPassword:SecureString -> unit
public function ChangePassword(
newPassword : SecureString
)
매개 변수
- newPassword
유형: SecureString
새 암호를 지정하는 SecureString 값입니다.
예
C#
ServerConnection conn = new ServerConnection();
conn.LoginSecure = false;
conn.Login = vlogin;
conn.password = vpassword;
conn.ChangePassword(newpassword);
PowerShell
$conn = new-object Microsoft.SqlServer.Management.Common.ServerConnection
$conn.LoginSecure = $FALSE
$conn.Login = vlogin
$conn.Password = vpassword
$conn.ChangePassword newpassword
참고 항목
참조
Microsoft.SqlServer.Management.Common 네임스페이스
관련 자료
Configuring SQL Server Access for SQL Server Authentication