>- see footer for list info -<
I have a block of code that needs to delete a record from a table and
insert an action audit trail of the deletion in to a different table.

Something like:

Delete from X where ID = 1

Insert into Y Values 1, deleted

Is this a good place to use CFTRANSACTION around the whole block of two queries?

As I understand - the cftransaction will not perform the second query
if the first is not successful. If the first query didn't find any
matching records to delete (i.e. not on the table), would this count
as 'not successful' and therefore skip the bottom query?

Hope that's clear!?

-- 
Richard Lovelock
_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- Hosting provided by www.cfmxhosting.co.uk -<
>- Forum provided by www.fusetalk.com -<
>- DHTML Menus provided by www.APYCOM.com -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to