Created
January 18, 2017 07:46
-
-
Save kkoziarski/2f4ccd5bf5cc88afbdba19756bd45b05 to your computer and use it in GitHub Desktop.
Find all tables containing column with specified name
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 TABLE_CATALOG, TABLE_SCHEMA, TABLE_NAME, COLUMN_NAME | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE COLUMN_NAME like '%Brand%' | |
ORDER BY TABLE_NAME, COLUMN_NAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment