1> --Create a database
2> IF EXISTS(SELECT name FROM sys.databases
3> WHERE name = 'myDatabase')
4> DROP DATABASE myDatabase
5> GO
1>
2> CREATE DATABASE myDatabase
3> GO
1>
2> USE myDatabase
3> GO
Changed database context to 'myDatabase'.
1>
2> use Master
3> GO
Changed database context to 'master'.
1> drop database myDatabase
2> GO
1>