Example #1
0
 private void RemoveSystemDB(App app, SqlServerManager sysManager)
 {
     if (sysManager == null)
     {
         logger.Log("ProductMaintenance", null, "RemoveApp", null, 2, string.Format("Could not drop system db from app {0}, the database server was not found the app type is {1}", app.Name, app.AppType.ToString()));
     }
     else
     {
         sysManager.DropDB(app.SystemServer, app.SystemCatalog);
     }
 }
Example #2
0
 private static void RemoveAppDb(App app, SqlServerManager manager)
 {
     if (manager == null)
     {
         logger.Log("ProductMaintenance", null, "RemoveApp", null, 2, string.Format("Could not drop main db from app {0}, the database server was not found, the app type is {1}", app.Name, app.AppType.ToString()));
     }
     else
     {
         manager.DropDB(app.Server, app.Catalog);
     }
 }