Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 how to find all tables with column name cust_nm

Author  Topic 

saltytom
Starting Member

6 Posts

Posted - 2011-04-04 : 16:16:46
How do I find all tables that contain the column name cust_nm?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-04 : 16:22:42
select TABLE_NAME
from INFORMATION_SCHEMA.COLUMNS
where COLUMN_NAME = 'cust_nm'

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

saltytom
Starting Member

6 Posts

Posted - 2011-04-05 : 08:06:49
That worked great! thanks.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-05 : 13:07:24
You're welcome, glad to help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -