Introduction
In this article, I'll show you how to search for a column value in all the referencing tables in SQL Server. Well, you can navigate to the tables and easily query them for a particular value.
But what if you have many tables in the database and you are not familiar with the schema and how many tables are referencing that column?
So I came across this problem rather than searching the tables manually. I just wrote a simple SQL query that'll do that automatically for you.
See the snapshot for the output
![DynaSerSql.gif]()
Note. Underlined with the orange marker are table names, and with the green marker is your column name.
I hope you'll enjoy this custom search.