Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find tables with specific field name?
Message
 
To
11/06/2008 09:20:54
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Microsoft SQL Server
Category:
Database management
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01323056
Message ID:
01323115
Views:
14
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform