deleting records
HI, can i ask some help,...i have some sql statement that will delete records to the database.but i am confuse on this,what if the third sql statement failed to process and then the first and second delete statement are successfully deleted the records?.how can i return the data that was deleted...
I am using cf version 9
<cftry>
<cfquery>
// delete statement here
</cfquery>
<cfquery>
// delete statement here
</cfquery>
<cfquery>
// delete statement here
</cfquery>
<cfcatch type='Any'>
<cfset log_error='#CFCATCH.Detail# #CFCATCH.Message#'>
<cfquery name="automatedtask" datasource="#mysource#">
// INSERT statemnent here
</cfquery>
</cfcatch>
</cftry>
