<cfqueryparam cfsqltype="CF_SQL_VARCHAR" value="#session.ID#" null="true">

Adrian

> -----Original Message-----
> From: Pranathi Reddy [mailto:[email protected]]
> Sent: 28 April 2009 18:06
> To: cf-talk
> Subject: Set column value to NULL
> 
> 
> My image datatype is varbinary(max) and I am storing binary image data
> in database.
> This query works fine in sql Server 2005 to set the attribute to
> 'Null'(delete binary data) but wat if I wanna use in coldfusion8
> <cfquery>
> 
> update table1 set image = null where empid ='@id'
> 
> I tried using
> <cfquery name="Qry_DeleteImage" datasource="#application.datasource#">
> Update table1
>               SET image = <cfqueryparam cfsqltype="CF_SQL_VARBINARY"
> null="true" value= ''>
>               WHERE   empID=<cfqueryparam cfsqltype="CF_SQL_VARCHAR"
> value="#session.ID#">
>       </cfquery>
> 
> How do I actually set the attribute value to null in coldfusion.
> 
> Thanks,
> Priya


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322027
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to