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

Finding Server Default Language in MS SQL

How to Optimize Stored Procedure in SQL Server ?

What are the System Data Collection Sets Predefined Inside SQL Se ...

What is Partial Cache Mode in SSIS ?

Deleting Columns From a Table with a Query in MS SQL