mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
Use connection string for change password connection (#2160)
This commit is contained in:
@@ -1294,7 +1294,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
|
||||
}
|
||||
|
||||
// Change the password of the connection
|
||||
ServerConnection serverConnection = new ServerConnection(changePasswordParams.Connection.ServerName, changePasswordParams.Connection.UserName, changePasswordParams.Connection.Password);
|
||||
ServerConnection serverConnection = new ServerConnection();
|
||||
serverConnection.ConnectionString = ConnectionService.BuildConnectionString(changePasswordParams.Connection);
|
||||
serverConnection.ChangePassword(changePasswordParams.NewPassword);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user