Is there a way to smooth data types in T-SQL (SQL Server 2005), a bit like a C typedef? I would like to be able to alias, say, VARCHAR (20), like "my_datatype", so wherever I want to use VARCHAR (20), I could use my_datatype instead.
Synonyms allow you to do similar things for tables, and there are also built-in synonyms for some data types, but AFAICS cannot define your own data type syntax. Does anyone know any different?
source
share