Find Tables in a Database Who Have a Filed With Same Name September 13, 2014 Get link Facebook X Pinterest Email Other Apps SELECT SCHEMA_NAME(schema_id) + '.' + t.name AS 'Table Name' FROM sys.tables t INNER JOIN sys.columns c ON c.object_id = t.object_id WHERE c.name like '%OrderID%' ORDER BY 'Table Name' Comments
Comments
Post a Comment