Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Transaction Control in DB2

Posted on 2003-11-06
3
Medium Priority
?
1,046 Views
Last Modified: 2008-03-04
I have a java/DB2 application. Within the application I have couple insert and update statements. I would like to put all updates and inserts within a single transaction.  If any part is unsuccessful, the entire transaction should be rolled back.  Can you please give me an example of how to  put couple INSERT statement within single transaction and then COMMIT or ROLLBACK depending on the success of the operation.

Thanks in advance!
0
Comment
Question by:ane4ka
1 Comment
 
LVL 6

Accepted Solution

by:
PWinter earned 1000 total points
ID: 9696642
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question