1SELECT COLUMN_NAME AS 'ColumnName'
2 ,TABLE_NAME AS 'TableName'
3FROM INFORMATION_SCHEMA.COLUMNS
4WHERE COLUMN_NAME LIKE '%MyName%'
5ORDER BY TableName
6 ,ColumnName;
1SELECT c.name AS 'ColumnName'
2 ,t.name AS 'TableName'
3FROM sys.columns c
4JOIN sys.tables t ON c.object_id = t.object_id
5WHERE c.name LIKE '%MyName%'
6ORDER BY TableName
7 ,ColumnName;