Solved

Transaction Control in DB2

Posted on 2003-11-06
3
964 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
3 Comments
 
LVL 6

Accepted Solution

by:
PWinter earned 250 total points
Comment Utility
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Read about achieving the basic levels of HRIS security in the workplace.
Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now