diff --git a/EHEC_Server/EHEC_Server/Web.config b/EHEC_Server/EHEC_Server/Web.config index 3fd839c..e2466e9 100644 --- a/EHEC_Server/EHEC_Server/Web.config +++ b/EHEC_Server/EHEC_Server/Web.config @@ -30,8 +30,8 @@ - - + + diff --git a/SQL/EHEC_DB_Query.sql b/SQL/EHEC_DB_Query.sql index 3b863de..00b1f2f 100644 --- a/SQL/EHEC_DB_Query.sql +++ b/SQL/EHEC_DB_Query.sql @@ -11,25 +11,16 @@ -- 180629 Ivan, Add inserts for fixed lists -- -------------------------------------------------- --- Set DB toSingle User so open connections do not block --- -------------------------------------------------- -PRINT 'Set Multiuser to Singleuser so all open connections are cut...'; -use master -ALTER DATABASE EHEC_DB SET SINGLE_USER WITH ROLLBACK IMMEDIATE --- -------------------------------------------------- - - - -- Auskommentieren für Löschung der Datenbank IF db_id('EHEC_DB') is not null BEGIN; - PRINT 'EHEC_DB already EXISTS, db will be deleted for a new creation.' + PRINT 'EHEC_DB existiert bereits, sie wird nun geloescht und neu Gebaut' USE [master]; DROP DATABASE EHEC_DB; END; ELSE BEGIN; - PRINT 'EHEC_DB does NOT EXISTS, the db will be created now...'; + PRINT 'EHEC_DB existiert noch nicht, die Datenbank wird nun neu Gebaut'; END; GO @@ -282,11 +273,9 @@ VALUES ('EHEC-D'), ('EHEC-E') GO + + -- -------------------------------------------------- -PRINT 'Set Singleuser mode back to Multiuser mode.'; --- set DB back to Multiuser so multiconnections are alowed again. -ALTER DATABASE EHEC_DB SET MULTI_USER --- -------------------------------------------------- -PRINT 'Successfull created your DB!'; +PRINT 'Erfolgreich!'; -- Script has ended -- -------------------------------------------------- \ No newline at end of file