?
Solved

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

Posted on 2004-09-08
6
Medium Priority
?
441 Views
Last Modified: 2008-03-17
What're the differences between using 'DELETE DATABASE' & 'DROP DATABASE' to delete a MS SQL database?
0
Comment
Question by:ictlwyu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 36

Expert Comment

by:Zyloch
ID: 12013534
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
0
 
LVL 12

Expert Comment

by:patrikt
ID: 12013643
What is DELETE DATABASE? There is no such statement in ANSI SQL and MS SQL.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 12013898
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
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:ictlwyu
ID: 12024322
Sorry! I meant using database 'DELETE' in Enterprise Manger and 'DROP DATABASE'.
0
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 400 total points
ID: 12024663
There is no difference between the DELETE menu for the database and the SQL statement DROP DATABASE, as the menu actually uses the SQL "DROP DATABASE"
CHeers
0
 
LVL 36

Expert Comment

by:Zyloch
ID: 12030719
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
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question