Deleting a Database


Visually Selecting a Database

 To visually delete a database, in SQL Server Management Studio, in the Object Explorer, expand the Databases node, right-click the undesired database, and click Delete. A dialog box would prompt you to confirm your intention. If you still want to delete the database, you can click OK. If you change your mind, you can click Cancel.

Deleting a Database Using SQL

To delete a database in a Query Editor, use the DROP DATABASE expression followed by the name of the database. The formula used is:


Before deleting a database in SQL, you must make sure the database is not being used or accessed by someone else or by another object.

  Copyright © 2008-2013 FunctionX