I'm in the process of updating MS-SQL table structures to use nvarchar(max) instead of the text datatype.
Previously, for my ColdFusion queries using the text datatype, I used cfsqltype="CF_SQL_LONGVARCHAR"
:
<cfquery name="local.qryUpdateByPK" datasource="#local.dsn#">
UPDATE
[JobPosting]
SET
[JobDescription] = <cfqueryparam value="#arguments.JobDescription#" cfsqltype="CF_SQL_LONGVARCHAR" null="#YesNoFormat(NOT Len(Trim(arguments.JobDescription)))#">
WHERE
[JobPostingID] = <cfqueryparam value="#arguments.JobPostingID#" cfsqltype="CF_SQL_INTEGER">
</cfquery>
I'm wondering what should be used for the cfsqltype attribute when using nvarchar(max) or varchar(max).