Share via


2.1.2.70 [ISO/IEC9075-14:2011] X120, XML parameters in SQL routines

V0105:

The specification states the following:

 Subclause 12.8, "<SQL-invoked routine>":
  
 Without Feature X120, "XML parameters in SQL routines", conforming SQL language shall not contain an <SQL-invoked routine> that simply contains a <language clause> that contains SQL and that simply contains a <parameter type> or a <returns data type> that contains a <data type> that is based on either an XML type or a distinct type whose source type is an XML type.

Microsoft SQL Server 2008 R2 and Microsoft SQL Server 2012 vary as follows:

Transact-SQL partially supports this feature. The xml data type cannot be used as a parameter to any scalar, built-in functions other than ISNULL, COALESCE, and DATALENGTH.

This variation pertains to xml data type functionality in SQL Server.