Edit

CFSqlType Cheatsheet

Table sourced from the Adobe Documentation

CF_SQL_*JDBCDB2OracleSQL Server
CF_SQL_ARRAYARRAYN/AN/AN/A
CF_SQL_BIGINTBIGINTBigIntN/Abigint
CF_SQL_BINARYBINARYChar for Bit DataN/Abinary, timestamp
CF_SQL_BITBITN/AN/Abit
CF_SQL_BLOBBLOBBlobblob, bfilelongvarbinary
CF_SQL_CHARCHARCharchar, ncharchar, nchar, uniqueidentifier
CF_SQL_CLOBCLOBClobclob, nclobN/A
CF_SQL_DATEDATEDateN/A/date
CF_SQL_DECIMAL*DECIMALDecimalnumberdecimal, money, smallmoney
CF_SQL_DISTINCTDISTINCTN/AN/AN/A
CF_SQL_DOUBLEDOUBLEDoubleN/Afloat
CF_SQL_FLOATFLOATFloatnumberreal
CF_SQL_IDSTAMPCHARCharchar, ncharchar, nchar, uniqueidentifier
CF_SQL_INTEGERINTEGERIntegerN/Aint
CF_SQL_LONGVARBINARYLONGVARBINARYLong Varchar for Bit Datalong rawimage
CF_SQL_LONGNVARCHARLONGNVARCHARLONGVARGRAPHICNVARCHAR2ntext, xml
CF_SQL_LONGVARCHARLONGVARCHARLong Varcharlongtext, ntext, xml
CF_SQL_MONEYDOUBLEDoubleN/Afloat, money
CF_SQL_MONEY4DOUBLEDoubleN/Afloat, money
CF_SQL_NCHARNCHARNCHARNCHARnchar
CF_SQL_NCLOBCLOBNCLOBNCLOBnvarchar
CF_SQL_NULLNULLN/AN/AN/A
CF_SQL_NUMERIC*NUMERICNumericN/Anumeric
CF_SQL_NVARCHARNVARCHARNVARCHARNVARCHAR2nvarchar
CF_SQL_OTHEROTHERN/AN/AN/A
CF_SQL_REALREALRealN/Areal
CF_SQL_REFCURSORREFN/AN/AN/A
CF_SQL_SMALLINTSMALLINTSmallintN/Asmallint
CF_SQL_STRUCTSTRUCTN/AN/AN/A
CF_SQL_SQLXMLN/AN/AN/Axml
CF_SQL_TIMETIMETimeN/Atime
CF_SQL_TIMESTAMPTIMESTAMPTimestampdatedatetime, datetime2, smalldatetime
CF_SQL_TINYINTTINYINTN/AN/Atinyint
CF_SQL_VARBINARYVARBINARYRowidrawvarbinary, geometry, geography, udt
CF_SQL_VARCHARVARCHARVarcharvarchar2, nvarchar2varchar, nvarchar

See also

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub