Provides compatibility with Embedded SQL implementations that do not conform to the ANSI SQL standard with respect to transaction management and, in particular, the Micro Focus Embedded SQL Toolkit for Microsoft SQL Server.
Syntax, Format 1:
>>--EXEC SQL--BEGIN TRAN-.------------------.-END-EXEC---><
+-transaction_name-+
Syntax, Format 2:
>>-EXEC SQL-BEGIN TRANSACTION.----------------.-END-EXEC-><
+transaction_name+
Parameters:
transaction_name
|
An optional identifier that is ignored.
|
Example:
EXEC SQL BEGIN TRANSACTION END-EXEC
Comments:
Use the BEGIN TRAN statement in AUTOCOMMIT mode to open a transaction. After you have opened the transaction in AUTOCOMMIT mode, you should execute a COMMIT or ROLLBACK statement to close the transaction and cause a return to AUTOCOMMIT mode.
If you are not opening a transaction in AUTOCOMMIT mode, then this statement has no effect.