Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Finding all tables that contain a column name

Status
Not open for further replies.

Mike179

Programmer
May 3, 2001
7
US
Hi,

Does anyone know if it's possible to run a query to find all of the tables that contain a certain column.

For example: Search for all tables that contain the the column "CompanyID"

Thanks in advance for any help,

Mike
 
select table_name from INFORMATION_SCHEMA.columns
where column_name = 'Amount'


Thanks

J. Kusch
 
Thanks Jay that's going to make my job a lot easier.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top