Share via


2.1.2.153 S211, User-defined cast functions

V0189:

The specification states the following:

 Subclause 11.63, "<user-defined cast definition>":
  
 <user-defined cast definition> ::=
 CREATE CAST <left paren> <source data type> AS <target data type> <right paren>
 WITH <cast function>
 [ AS ASSIGNMENT ]
  
 ...
  
 Conformance Rules
  
 Without Feature S211, "User-defined cast functions", conforming SQL language shall not contain a <user-defined cast definition>.
  
 Subclause 11.64, "<drop user-defined cast statement>":
  
 <drop user-defined cast statement> ::=
 DROP CAST <left paren> <source data type> AS <target data type> <right paren>
 <drop behavior>
  
 ...
  
 Conformance Rules
  
 Without Feature S211, "User-defined cast functions", conforming SQL language shall not contain a <drop user-defined cast statement>.

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

Transact-SQL does not support this feature.