Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fastest way to drop all tables
Message
 
À
26/02/2008 18:31:27
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Import/Export
Divers
Thread ID:
01296633
Message ID:
01296740
Vues:
8
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform