Delete a Database
Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).
This topic describes how to delete a user-defined database in SQL Server Management Studio in SQL Server 2016 by using SQL Server Management Studio or Transact-SQL.
In This Topic
Limitations and Restrictions
System databases cannot be deleted.
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.
Consider taking a full backup of the database. A deleted database can be re-created only by restoring a backup.
To execute DROP DATABASE, at a minimum, a user must have CONTROL permission on the database.
To delete a database
In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.
Expand Databases, right-click the database to delete, and then click Delete.
Confirm the correct database is selected, and then click OK.
Back up the master database. If master must be restored, any database that has been deleted since the last backup of master will still have references in the system catalog views and may cause error messages to be raised.