Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find tables with specific field name?
Message
De
11/06/2008 11:18:59
 
 
À
11/06/2008 09:20:54
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Maintenance bases de données
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01323056
Message ID:
01323115
Vues:
15
>Is there a way in SQL Server Management Studio to find tables with a specific field name?

In SQL Server 2005 you could use:
SELECT OBJECT_NAME(Object_Id) AS TableName 
             FROM sys.COLUMNS
WHERE Name = 'YourColumnName AND OBJECTPROPERTY(Object_id, 'IsUserTable') = 1
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
Répondre
Fil
Voir

Click here to load this message in the networking platform