Using DataDirect Test™ : DataDirect Test™ Tutorial : Establishing Savepoints

Establishing Savepoints
Note:
1.
From the Connection window menu, select Connection / Connection Properties.
2.
Select TRANSACTION_COMMITTED from the Transaction Isolation drop-down list. Do not select the Auto Commit check box.
Connection Properties dialog box
3.
Click Set; then, click Close.
4.
From the Connection window menu, select Connection / Load and Go. The Get Load And Go SQL window appears.
5.
Get Load and Go SQL dialog box
6.
Select Connection / Set Savepoint.
7.
Set Savepoints dialog box
8.
Click Apply; then, click Close. The Connection window indicates whether or not the savepoint succeeded.
Connection window indicating that the savepoint succeeded
9.
Get Load and Go SQL dialog box
10.
Select Connection / Rollback Savepoint. In the Rollback Savepoints window, specify the savepoint name.
Rollback Savepoints window with the savepoint name specified
11.
Click Apply; then, click Close. The Connection window indicates whether or not the savepoint rollback succeeded.
12.
Get Load And Go SQL window
Click Submit; then, click Close. The Connection window displays data that was inserted before the first Savepoint. The second insert was rolled back.
Connection window displaying data that was inserted before the first savepoint

© 2012 Progress Software Corporation and/or its subsidiaries or affiliates.