Use connection string for change password connection (#2160)

This commit is contained in:
Cheena Malhotra
2023-08-02 14:04:40 -07:00
committed by GitHub
parent 6099746922
commit 93ee1275b0

View File

@@ -1294,7 +1294,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Connection
} }
// Change the password of the 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); serverConnection.ChangePassword(changePasswordParams.NewPassword);
} }