Created
December 24, 2015 13:44
-
-
Save thebentern/fc6646168e783bdf0844 to your computer and use it in GitHub Desktop.
Find Column by name in Database
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 '%MyName%' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment