Created
April 14, 2022 13:03
-
-
Save dlgombert/78847de686e909b0e0839ea65bf3c5e5 to your computer and use it in GitHub Desktop.
[sql view column finder] Finds columns in sql server views #tsql
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 | |
| DISTINCT OBJECT_DEFINITION(sv.object_id) | |
| FROM | |
| sys.views sv | |
| JOIN sys.columns sc ON (sv.object_id = sc.object_id) | |
| WHERE | |
| sc.name LIKE '%#{$1:COLUMN_NAME_SUBSTRING}%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment