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

General Information List of All Allowed Databases in MS SQL Serve ...

What are The Different Backup Options With SQL Server ?

What is the Difference Between UNION and UNION ALL in SQL Server ...

Making a Backup of MS SQL Database With Query

What is RAISEERROR in SQL Server ?