Created
November 8, 2018 14:03
-
-
Save Dalesjo/c114755d955b51ac9c6166d4c3afadbd to your computer and use it in GitHub Desktop.
Find all column with a specific name, and what table they recide in.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 '%Trailer%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment