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

Searching Tables in a Database

Status
Not open for further replies.

tgtfranz

Programmer
Mar 8, 2007
37
US
Hi,

Does anyone out there know of a way to search a database for tables for a specific field. Right now I am looking through these one by one and it is getting painful.

I know there are tools out there for doing this in sprocs like sp_search and sp_search_code but these are just for stored procedures and not the rest of the objects.

Thanks
tgtfranz
 
Select * from information_schema.columns where column_name LIKE '%yoursearchstringhere%"

-DNG
 
Thank you DNG,

This is EXACTLY what I was looking for and it is so simple. Leave it to me to over complicate things. :)

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top