This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use master | |
go | |
IF db_id('MyTest') IS NOT NULL | |
BEGIN | |
ALTER DATABASE MyTest SET SINGLE_USER WITH ROLLBACK IMMEDIATE; | |
DROP DATABASE MyTest; | |
END | |
CREATE DATABASE MyTest; |