Using ASE/CIS with the ASE transaction model

ASE/CIS requires an access service to support particular aspects of the ASE transaction model. If the access service is configured correctly for ASE/CIS, and if it recognizes the ASE/CIS client application, it supports the transaction model. The model includes these statements:

NoteThis is a limited implementation of the ASE transaction model and is available only for ASE/CIS. Other applications cannot use these features.

To process ASE/CIS transactions, you must set the transaction mode and transform level parameters. For instructions, see the Adaptive Server Enterprise Component Integration Services Guide.

If all conditions are met, the transaction statements are handled as follows:

begin tran statement

The access service:

Other considerations are:

prepare tran statement

If the access service is in an ASE/CIS transaction, it:

This statement is issued in preparation for a commit statement.

commit or rollback statement

If the access service is in an ASE/CIS transaction, it:

ASE/CIS expects the access service to be in short transaction mode unless:

Because the access service automatically switches to long transaction mode when a cursor is declared or when a dynamic event prepare occurs, it backs out of this mode when the last cursor and prepared statement are deallocated and not in a begin tran block.

NoteASE/CIS always issues dynamic events within its own transaction, so it is not necessary to back out when the last dynamic statement is freed.

In the event of a rollback, the access service issues a commit and sets the transaction mode to short.