remove unnecessary code

To remove the database it's not needed to remove all tables beforehand.
This commit is contained in:
Andreas Zweili 2017-07-09 19:01:18 +02:00
parent 0b33cd0c09
commit 0308f06dae
1 changed files with 0 additions and 56 deletions

View File

@ -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;