This repository has been archived on 2020-04-03. You can view files and clone it, but cannot push or open issues or pull requests.
ibz/db/3_sem/recursion_excercise/recursion_excercise/remove_database.sql

18 lines
389 B
SQL

-- Removes the bike_shop DB
--
-- Author: Andreas Zweili
-- Erstellt: 2017-05-28
-- DB-Server SQL Server 2016
use bike_shop;
if exists (select * from sysobjects where name='teile')
drop table teile;
if exists (select * from sysobjects where name='struktur')
drop table struktur;
use master;
if exists (select * from sys.databases where name='bike_shop')
drop DATABASE bike_shop;