This would work, as long as you're using MS SQL.

> -----Original Message-----
> From: Ben Nadel [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, April 19, 2006 1:26 PM
> 
> I suppose one solutions, while it is a bit more work would be to have
> osmething like:
> 
> <cfquery ...>
> DECLARE @record_count INT;
> 
> SET @record_count = ISNULL(
>   (
>     SELECT COUNT(*) AS record_count FROM [TABLE] WHERE.... < 
> where clauses >
>   ),
>   0
> ); 
> 
> <!--- Now run update --->
> UPDATE..... WHERE......
> 
> <!--- Select the recourd count. --->
> SELECT
>   @record_count AS RecordCount
> ;
> </cfquery>

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238201
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to