Server transaction states

Server transaction state information is useful when an application needs to determine the outcome of a transaction.

The following table lists the symbolic values that represent transaction states:

Table 2-22: Transaction states

Symbolic value

Meaning

CS_TRAN_IN_PROGRESS

A transaction is in progress.

CS_TRAN_COMPLETED

The most recent transaction completed successfully.

CS_TRAN_STMT_FAIL

The most recently executed statement in the current transaction failed.

CS_TRAN_FAIL

The most recent transaction failed.

CS_TRAN_UNDEFINED

A transaction state is not currently defined.