SYSK 287: Custom C#/VB (CLR) Types Used in SQL Server

Did you know that you can use custom CLR types in Microsoft SQL Server by adding [Serializable, Microsoft.SqlServer.Server.SqlUserDefinedType] attribute?  And, yes, you can implement and use methods – see Microsoft.SqlServer.Server.SqlMethod attribute…


Here are some good links for more information:


  1. How to create a CLR-based user defined type:


  1. Register CLR-based type:


  1. Using CLR-based types:



Comments (0)

Skip to main content