Skip to content

Instantly share code, notes, and snippets.

@kkoziarski
Created January 18, 2017 07:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kkoziarski/2f4ccd5bf5cc88afbdba19756bd45b05 to your computer and use it in GitHub Desktop.
Save kkoziarski/2f4ccd5bf5cc88afbdba19756bd45b05 to your computer and use it in GitHub Desktop.
Find all tables containing column with specified name
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