From 0308f06dae67f65821068dcf5313b092989f43b9 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 9 Jul 2017 19:01:18 +0200 Subject: [PATCH] remove unnecessary code To remove the database it's not needed to remove all tables beforehand. --- sql/sql/setup_04_remove_database.sql | 56 ---------------------------- 1 file changed, 56 deletions(-) diff --git a/sql/sql/setup_04_remove_database.sql b/sql/sql/setup_04_remove_database.sql index 36fc44e..700c69a 100644 --- a/sql/sql/setup_04_remove_database.sql +++ b/sql/sql/setup_04_remove_database.sql @@ -4,62 +4,6 @@ -- Erstellt: 2017-05-27 -- DB-Server SQL Server 2016 -use marketdb; -if exists (select * from sysobjects where name='commercials') - DROP TABLE commercials; - -use marketdb; -if exists (select * from sysobjects where name='member_status') - DROP TABLE member_status; - -use marketdb; -if exists (select * from sysobjects where name='salutations') - DROP TABLE salutations; - -use marketdb; -if exists (select * from sysobjects where name='subscriptions') - DROP TABLE subscriptions; - -use marketdb; -if exists (select * from sysobjects where name='subscption_orders') - DROP TABLE subscption_orders; - -use marketdb; -if exists (select * from sysobjects where name='members') - DROP TABLE members; - -use marketdb; -if exists (select * from sysobjects where name='persons') - DROP TABLE persons; - -use marketdb; -if exists (select * from sysobjects where name='trial_periods') - DROP TABLE trial_periods; - -use marketdb; -if exists (select * from sysobjects where name='quality_checks') - DROP TABLE quality_checks; - -use marketdb; -if exists (select * from sysobjects where name='cities') - DROP TABLE cities; - -use marketdb; -if exists (select * from sysobjects where name='countries') - DROP TABLE countries; - -use marketdb; -if exists (select * from sysobjects where name='rents') - DROP TABLE rents; - -use marketdb; -if exists (select * from sysobjects where name='locations') - DROP TABLE locations; - -use marketdb; -if exists (select * from sysobjects where name='rent_prices') - DROP TABLE rent_prices; - use master; if exists (select * from sys.databases where name='marketdb') drop DATABASE marketdb;