Example # If you have create Net class that represents some userdefined type, compiled it into dll, and imported it into SQL server as an assembly, you can create userdefined function that references this class CREATE TYPE dboPoint EXTERNAL NAME MyLibrary NameSpacePoint