Advertisement

07.17.2008 at 02:02PM PDT, ID: 23574936
[x]
Attachment Details

Drop all tables in a database, or just delete the database altogether

Asked by DJ_AM_Juicebox in SQL Query Syntax, Databases Miscellaneous

Hi,

Is there a sql command to drop all the tables in a database, or just delete the whole database altogether? Right now I'm using:

    DROP TABLE my_table_name

which works ok, but it would be easier to drop all of them in one step instead of iterating over every single one. If I just have to drop the whole database, that's fine too, I can just re-create it.

ThanksStart Free Trial
[+][-]07.17.2008 at 02:04PM PDT, ID: 22030300

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 02:04PM PDT, ID: 22030308

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 02:11PM PDT, ID: 22030388

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 02:13PM PDT, ID: 22030401

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.19.2008 at 11:21AM PDT, ID: 22043277

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, Databases Miscellaneous
Sign Up Now!
Solution Provided By: acperkins
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.20.2008 at 11:54AM PDT, ID: 22046566

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 12:36PM PDT, ID: 22046679

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 12:44PM PDT, ID: 22046700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628