Appendix B. XQuery Data Types

SQL Server 2008 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.

XQuery Data Type System

Figure B.1. XQuery Data Type System

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 calendarbased date value exactly one day in length, represented in the format ...

Get Pro T-SQL 2008 Programmer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.