How can I get all the table names where the given column name exists? I want the names with "Like" in sql server. SELECT c.name AS ColName ,t.name AS TableName FROM sys.columns c JOIN sys.tables t ON c.object_id = t.object_id WHERE c.name LIKE '%MyCol%';