Delete a Database
This topic describes how to delete a user-defined database in SQL Server Management Studio in SQL Server 2012 by using SQL Server Management Studio or Transact-SQL.
In This Topic
-
Before you begin:
-
To delete a database, using:
-
Follow Up: After deleting a database
Limitations and Restrictions
-
System databases cannot be deleted.
Prerequisites
-
Delete any database snapshots that exist on the database. For more information, see Drop a Database Snapshot (Transact-SQL).
-
If the database is involved in log shipping, remove log shipping.
-
If the database is published for transactional replication, or published or subscribed to merge replication, remove replication from the database.
Recommendations
-
Consider taking a full backup of the database. A deleted database can be re-created only by restoring a backup.