DELETE DATABASE in SQL

HOW TO DELETE A DATABASE IN SQL?

DROP DATABASE  

To drop an existing SQL database use command-

DROP DATABASE database_name;

HOW TO DROP DATABASE IN T-SQL

DROP DATABASE [IF EXISTS] database_name(s);

Example-

DROP DATABASE [ IF EXISTS] database_name1 , database_name2, database_nameN;

Note-

We are required to keep a database backup if we need to recover it in the future.

We are unable to delete the currently active database.


Posted

in

Tags:

Comments

Leave a Reply