Advantage SQL Engine
Rolls back a transaction on the server.
Syntax
ROLLBACK [WORK] [TO [SAVEPOINT] savepointname]
Remarks
ROLLBACK WORK rolls back all work done inside a transaction or rolls back all work to the savepoint. The transaction state is shared with the client, so a transaction cannot be rolled back in SQL if one has not been started either by an Advantage client (i.e., ACE API AdsBeginTransaction) or through the Advantage SQL engine.
Note SQL transactions behave exactly like client transactions. Therefore, with Advantage Local Server, transactions are not supported but are expected to be executed in a correct sequence.
Examples
BEGIN TRANSACTION
UPDATE sal SET salary = 35000.00 WHERE emp_id = 25089
ROLLBACK WORK
BEGIN TRAN
UPDATE sal SET salary = 20000 WHERE hire_date < '1992-02-14'
ROLLBACK