I need to enumerate all the user defined types created in a SQL Server database with CREATE TYPE, and/or find out whether they have already been de
To expand on jwolly2's answer, here's how you get a list of definitions including the standard data type:
-- User Defined Type definitions TP 20180124
select t1.name, t2.name, t1.precision, t1.scale, t1.max_length as bytes, t1.is_nullable
from sys.types t1
join sys.types t2 on t2.system_type_id = t1.system_type_id and t2.is_user_defined = 0
where t1.is_user_defined = 1 and t2.name <> 'sysname'
order by t1.name