I am experimenting and learning with Microsoft SQL Server 2008 R2 SP1. I have a database where I made many experiments. Now I would like to drop and recreate it. So I extract th
USE master IF EXISTS(select * from sys.databases where name='yourDBname') DROP DATABASE yourDBname CREATE DATABASE yourDBname