APPENDIX B

image

XQuery Data Types

SQL Server 2012 supports the data types defined in the XQuery Data Model (XDM). The supported data types are listed with their definitions in Table B-1. The diagram in Figure B-1 is a quick reference showing the relationships between the XDM data types.

Table B-1. XQuery Data Types

Type Description
Base Types
xs:anySimpleType This is the base type for all simple built-in types.
xs:anyType This is the base type for xs:anySimpleType and complex built-in types.
Date/Time Types
xs:date This type represents a Gregorian calendar–based date value exactly one day in length, represented in the format ...

Get Pro T-SQL 2012 Programmer's Guide, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.