mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-14 01:25:40 -05:00
Only delete database backup and restore history after the database has been successfully dropped (#2202)
This commit is contained in:
@@ -495,11 +495,11 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement
|
||||
var sqlConn = dataContainer.ServerConnection.SqlConnectionObject;
|
||||
SqlConnection.ClearPool(sqlConn);
|
||||
}
|
||||
smoDatabase.Drop();
|
||||
if (dropParams.DeleteBackupHistory)
|
||||
{
|
||||
server.DeleteBackupHistory(smoDatabase.Name);
|
||||
}
|
||||
smoDatabase.Drop();
|
||||
if (dropParams.GenerateScript)
|
||||
{
|
||||
var builder = new StringBuilder();
|
||||
|
||||
Reference in New Issue
Block a user