If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > db programming question - transaction control

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-08-06, 10:38
glbairwa glbairwa is offline
Registered User
 
Join Date: Jun 2006
Posts: 1
db programming question - transaction control

Suppose you have block of sql statements which contains only one insert or update statement , rest are just queries. Like the following

try {

query1
query2
query3
insert
} catch ( exception e ) {

}


Is the rollback needed in case there is exception ? I can not think of a scenario where it is need. Can anybody think of a scenario where database integrity will be compromised or unexpected result will occur if you do not do rollback when exception occurs...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On