Quantcast
Channel: Toad for IBM DB2 Forum - Recent Threads
Viewing all articles
Browse latest Browse all 389

How to do Error Handling in DB2 Stored Proc?

$
0
0

Hi All,

I am very new to DB2 world and I would like to know the Implementation of Error Handling in DB2 stored procedures along with rollback.

Example Scenario:  A db2 stored proc have different dml commands like Insert and updates. During the time of inserts and updates I need to implement error handling. Also if there is a dependency between Inserts and updates. If all the inserts got successful and something in the updates failed with in single stored procedure then all the inserts must rollback and should display the error message.

Thanks!!!

Waiting for the reply....


Viewing all articles
Browse latest Browse all 389

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>