In addition to the many data types available in SQL Server, you also have the option of creating your own data type. Some of these are referred to as “user-defined data types”, while others are referred to as “alias data types”.
A user-defined data type is implemented through a class of an assembly in the Microsoft.NET Framework common language runtime (CLR).
An alias data type is based on a SQL Server native system type. In other words, you use an existing data type for the basis of your alias data type.
Having said that, I’ve seen Microsoft use the term “user-defined data type alias” when referring to an alias data type. I’ve also seen it referred to as simply a “data type alias”.
Either way, this article demonstrates how to a create a user-defined data type alias using Transact-SQL.
Continue reading →