Link to home
Start Free TrialLog in
Avatar of ictlwyu
ictlwyu

asked on

Differences between 'DELETE DATABASE' & 'DROP DATABASE'?

What're the differences between using 'DELETE DATABASE' & 'DROP DATABASE' to delete a MS SQL database?
Avatar of Zyloch
Zyloch
Flag of United States of America image

Hi

Well, I don't think you use DELETE DATABASE. DROP DATABASE is to basically delete the database, but DELETE is mostly used for tables (maybe can be used for database, but in that case, should be same as DROP)

Regards,
Zyloch
What is DELETE DATABASE? There is no such statement in ANSI SQL and MS SQL.
I agree with above: M$SQL Server does not have a statement DELETE DATABASE
the same as it doesn't have a " SELECT * FROM * " to select all data from a database...
DELETE means delete data (table rows)
DROP means delete meta-data [+all the data contained] (table definition, index definition, database definition)

CHeers
Avatar of ictlwyu
ictlwyu

ASKER

Sorry! I meant using database 'DELETE' in Enterprise Manger and 'DROP DATABASE'.
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Seems people understand DELETE better than DROP... sigh, people these days, always thinking dropped things can be fixed but that ultra top secret file you just deleted lays forgotten in the Recycle Bin lol