mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 17:23:52 -05:00
Add support for Azure Active Directory connections (#727)
This commit is contained in:
@@ -213,8 +213,7 @@ namespace Microsoft.SqlTools.ServiceLayer.DisasterRecovery.RestoreOperation
|
||||
|
||||
if (connInfo != null)
|
||||
{
|
||||
SqlConnection connection = ConnectionService.OpenSqlConnection(connInfo, "Restore");
|
||||
Server server = new Server(new ServerConnection(connection));
|
||||
Server server = new Server(ConnectionService.OpenServerConnection(connInfo, "Restore"));
|
||||
|
||||
RestoreDatabaseTaskDataObject restoreDataObject = new RestoreDatabaseTaskDataObject(server, targetDatabaseName);
|
||||
return restoreDataObject;
|
||||
|
||||
Reference in New Issue
Block a user