What is the usage of SAVEPOINTS

Showing Answers 1 - 3 of 3 Answers

Hiren Vachhani

  • Mar 14th, 2005
 

SAVEPOINTS are used to subdivide a transaction into smaller parts. It enables rolling back part of a transaction. Maximum of five save points are allowed.

  Was this answer useful?  Yes

Ratan

  • Mar 25th, 2005
 

Savepoints are the temporary bookmarks. it is possible to rollback up to the named savepoint.

  Was this answer useful?  Yes

Scott

  • May 12th, 2005
 

By utilizing savepoints, you are able to rollback to a given point in your processing. An example of this would be: 
... 
COMMIT; 
 
INSERT 
UPDATE 
SAVEPOINT A 
 
DELETE 
UPDATE 
INSERT 
SAVEPOINT B 
 
INSERT 
INSERT 
DELETE 
SAVEPOINT C 
 
ROLLBACK TO SAVEPOINT B 
 
I only lost the two inserts and delete. Had I not placed savepoints in my processing and used a rollback, I would have lost my entire transaction back to the last good commit.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions