What is the most appropriate Coldfusion cfsqltype to use for MS SQL's uniqueidentifier field type?

3.3k views Asked by At

When connecting from Coldfusion 8 to a MS SQL 2008 datasource, what Coldfusion cfsqltype should I use for a SQL column set to 'uniqueidentifier'.

<cfquery name="user" datasource="#ds#">
    SELECT id, username
    FROM users
    WHERE id = <cfqueryparam cfsqltype="WHAT_CF_SQL_TYPE_HERE?" value="#arguments.id#">
</cfquery>

Thanks!

1

There are 1 answers

1
Henry On BEST ANSWER