MDAC 2.5 SDK - ODBC Programmer's Reference
Appendix E: Scalar Functions
The CAST function defined in SQL-92 is equivalent to the CONVERT function defined in ODBC. The syntax of the equivalent functions is as follows:
{ fn CONVERT (value-exp, data-type) } /* ODBC
CAST (value-exp AS data-type) /* SQL92
The SQL-92 CAST function mandates which data types can be converted to which other data types. (For more information, see the SQL-92 specification.) The CAST function is supported at the FIPS Transitional level.
An application can determine support for the CAST function as follows: