Login.ChangePassword Method (String, String)
Changes the password for the login account.
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Parameters
- oldPassword
- Type: System.String
A String value that specifies the old, existing password.
- newPassword
- Type: System.String
A String value that specifies the new password.