Created
March 26, 2019 11:46
-
-
Save matt40k/da9917b43efbb501300a4b302c1e5abb to your computer and use it in GitHub Desktop.
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
select | |
concat('select top 10 [', c.name, '] from [', schema_name(t.schema_id), '].[', t.name, '] where [', c.name, '] like ''%.%'' and [', c.name, '] not like ''%.0%''') | |
from | |
sys.tables t | |
inner join sys.columns c on | |
t.object_id = c.object_id | |
inner join sys.types ty on | |
c.user_type_id = ty.user_type_id | |
and ty.name = 'decimal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment