public static void InstallDatabase(string connectionString) { string message; SqlConnectionStringBuilder csB = new SqlConnectionStringBuilder(connectionString); if (SqlUtilities.DatabaseExist(csB)) { message = string.Format("--- Deleting Previous Database [{0}]...", csB.InitialCatalog); MyLogger.ShowMessage(message); SqlUtilities.DeleteDbIfExists(csB, 1000, MyCallbacks.MyDatabaseCallback); } message = string.Format("--- Creating New Database [{0}]...", csB.InitialCatalog); MyLogger.ShowMessage(message); SqlUtilities.CreateDatabase(csB, 1000, MyCallbacks.MyDatabaseCallback); CreateSqlTables(connectionString); }