Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.36 KB

user-defined-types.md

File metadata and controls

22 lines (16 loc) · 1.36 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic
User defined types
User defined types
David-Engel
v-davidengel
08/12/2019
sql
connectivity
conceptual

User defined types

[!INCLUDEDriver_JDBC_Download]

User-defined types (UDTs) were introduced in [!INCLUDEssVersion2005] to allow a developer to extend the server's scalar type system by storing common language runtime (CLR) objects in a [!INCLUDEssNoVersion] database. UDTs can contain multiple elements and can have behaviors, unlike the traditional alias data types, that consist of a single [!INCLUDEssNoVersion] system data type. Previously, UDTs were restricted to a maximum size of 8 kilobytes. In [!INCLUDEsql2008-md], support was added for UDTs larger than 64 kilobytes. Beginning in version 3.0, the JDBC Driver also supports UDTs larger than 64 kilobytes when you specify the UserDefined format.

There is no behavior change for UDTs that are less than or equal to 8,000 bytes, but larger UDTs are supported and report their size as "unlimited".

See also

Understanding the JDBC driver data types