Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete tables from database
Message
De
23/05/2012 08:02:30
 
 
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:
01544128
Vues:
34
>
>-- Set result to a text in SSMS
>SELECT 'DROP TABLE ' + name
>	FROM sys.tables
>	WHERE <Your conditions>
>-- Copy and run result 
>
>>
>>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 Sergey

That does the job.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform