MS SQL Finding Which Tables a Column Name is In

The following code should be run to obtain the list in which tables a column name is wanted to be searched in MS SQL Server.

SELECT c.name AS ColumnName, t.name AS TableName FROM sys.columns c JOIN sys.tables t ON c.object_id = t.object_id WHERE c.name LIKE '%{Column Name to Search}%'


You May Interest

How to Show Line Numbers in MS SQL Server ?

MS SQL Show Only Date of Current Time

What is the Maximum Size per Database for SQL Server Express ?

What is the Difference Between CHAR and VARCHAR Datatypes in SQL ...

Getting Character Count in MS SQL