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

What is the Difference Between VARCHAR and VARCHAR(MAX) Datatypes ...

What are Replication and Database Mirroring in SQL Server ?

MS SQL Compiling a Stored Procedure With a Requery

What is the Maximum Number of Columns a Table in SQL Server ?

What is Partial Cache Mode in SSIS ?