Cftransaction - MACROMEDIA COLDFUSION 5 - CFML Reference

Cfml reference
Hide thumbs Also See for COLDFUSION 5 - CFML:
Table of Contents

Advertisement

284

cftransaction

Description
Groups multiple queries into a single unit. The
and rollback processing. See Usage for details.
Category
Database manipulation tags
Syntax
<cftransaction
</cftransaction>
See also
cfinsert, cfprocparam, cfprocresult, cfquery, cfqueryparam,
cfstoredproc,
Attributes
Attribute
action
isolation
Usage
A transaction block is created within these tags:
<cftransaction>
</cftransaction>
Within the transaction block, you can commit a transaction by nesting the
<cftransaction action = "commit"/>
the
Within a transaction block, you can write queries to more than one database;
however, you must commit or rollback the transaction to one database before
writing a query to another database.
Using CFML error handling, you control whether each transaction is committed,
based on the success or failure of the database query.
Use the
performs locking during the transaction.
action = "begin" or "commit" or "rollback"
isolation = "Read_Uncommitted" or
"Read_Committed" or
"Repeatable_Read" >
cfupdate
Description
Optional. The actions are as follows:
begin, which indicates the start of the block of code to be executed. It
is the default value.
commit, which commits a pending transaction.
rollback, which rolls back a pending transaction.
Optional. ODBC lock type. Valid entries are:
Read_Uncommitted
Read_Committed
Repeatable_Read
Serializable
queries to be executed
<cftransaction action = "rollback"/>
attribute for additional control over how the database engine
isolation
Chapter 2 ColdFusion Tags
cftransaction
tag or roll the transaction back by nesting
tag within the block.
tag provides commit

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COLDFUSION 5 - CFML and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Coldfusion 5

Table of Contents