ServerConnection.ChangePassword 메서드 (SecureString)
Changes the login password that is used with standard authentication.
네임스페이스: 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
유형: System.Security.SecureString
A SecureString value that specifies the new password.
예
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