Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fastest way to drop all tables
Message
 
To
26/02/2008 18:31:27
General information
Forum:
Microsoft SQL Server
Category:
Import/Export
Miscellaneous
Thread ID:
01296633
Message ID:
01296740
Views:
7
This message has been marked as the solution to the initial question of the thread.
>The only way I have found so far is to execute a script at the database level to include a DROP TABLE line for every table I have in my database. But, instead of having 120 lines, I was wondering if there would have been something like DROP TABLE ALL.

You could use sp_MSForEachTable:
USE YourDataBase
sp_MsForEachTable 'DROP TABLE ?'
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform