• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

cftransaction

Synopsis

<cftransaction>
CFML code
</cftransaction>

Treats all query operations between <cftransaction>...</cftransaction> tags as a single transaction. Changes to the database aren’t committed until all queries in the transaction have executed successfully. In the event that a query within the transaction fails, all previous queries are automatically rolled back.

cftransaction tags may be nested to allow portions of the transaction to be committed or rolled back within the main cftransaction block. More than one database may be written to within a single cftransaction block if each transaction is committed or rolled back prior to writing a query to the next database. Exception handling using


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint