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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What tables contain a specific column 1

Status
Not open for further replies.

glendacom

MIS
Oct 23, 2002
36
0
0
US
I have inherited a database from some where. None of the relationships were defined and no indexes exist. One good thing is that the original designer was good about naming columns consistently. I need to determine what tables specific columns exist in. (For example "what tables contain a column named 'customID'?").

Does anyone know an easy way to do this?

Thanks!
 
Use the information_schema views, or the system tables (syscolumns and sysobjects).

More infomation on all three is available from BOL.

Denny

--Anything is possible. All it takes is a little research. (Me)
 
Thanks! the Information_Schema views have done the trick! BOLs are great if you know at least some of the key words to search with and you gave me more than I needed!
 
no problem.

Denny

--Anything is possible. All it takes is a little research. (Me)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top