Last active
July 30, 2016 18:13
-
-
Save jeremykdev/517dc9984807cadf98be35ecfdfb8cd5 to your computer and use it in GitHub Desktop.
Find Microsoft SQL Server database tables which include columns using depricated data types
This file contains 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
-- see: https://msdn.microsoft.com/en-us/library/ms143729.aspx | |
SELECT | |
TABLE_SCHEMA | |
,TABLE_NAME | |
,COLUMN_NAME | |
,DATA_TYPE | |
FROM INFORMATION_SCHEMA.COLUMNS | |
WHERE DATA_TYPE IN ( | |
'text' | |
, 'ntext' | |
, 'image' | |
) | |
ORDER BY TABLE_SCHEMA, TABLE_NAME, DATA_TYPE; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment