HOW TO DELETE DATABASE IN SQL

DROP 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.


Leave a Reply

Your email address will not be published. Required fields are marked *