Finding a the correct field in in many databases

Is there a way to find a certain fieldname with big SQL database with many tables.

For example.   Database01    has 50 tables.     Microsoft SQL 2016

how would i find a filed called  Node if i don't know the location of the table?  Since there are 50 tables, it would be very hard to go through each table looking for the filed Node.

any help would be great.
Who is Participating?
Scott PletcherConnect With a Mentor Senior DBACommented:
SELECT OBJECT_NAME(object_id) AS table_name, name AS column_name, column_id    
FROM sys.columns
WHERE name = 'Node' AND
    OBJECTPROPERTYEX(object_id, 'BaseType') = 'U'
Pawan KumarDatabase ExpertCommented:
There are two options for you. QUERY/FREE Tool
1. Write a query. For this you can refer
2. Install a tool.
Eg. a. ,
Install and it will do a quick search for you.
Éric MoreauSenior .Net ConsultantCommented:
give a try to the free Red Gate SQL Search:
sirichaiphumiratConnect With a Mentor Author Commented:
Thanks everyone i was able to get it working with this code.

SELECT  AS 'ColumnName'
            , AS 'TableName'
FROM        sys.columns c
JOIN        sys.tables  t   ON c.object_id = t.object_id
ORDER BY    TableName

Hard part is now i'll have to narrow down the tables. But its better than searching everything.
sirichaiphumiratAuthor Commented:
thank you.. worked great.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.