Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete tables from database
Message
 
 
À
23/05/2012 05:01:44
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01544120
Message ID:
01544127
Vues:
31
>Hi
>
>I need to remove a lot of tables from a database. How can I do this without having to select each one and delete it individually.
>
>I'm looking for some sort of wildcard selection.
>
>Thanks
>
>
>Nick

This is not a well-known fact, but you can drop them by one DROP command

http://beyondrelational.com/modules/1/justlearned/388/tips/9120/you-can-drop-multiple-tables-using-single-drop-statement.aspx
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform