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 > DB2 > how to config a Stored Procedure to be run in a new seperated Transaction.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-24-03, 17:25
Xun_Zhang Xun_Zhang is offline
Registered User
 
Join Date: Nov 2003
Posts: 16
how to config a Stored Procedure to be run in a new seperated Transaction.

Does anyone knows how to config a Stored Procedure to be run in a new, seperated Transaction (Work of Unit) of its own?

Oracle has a 'PRAGMA AUTONOMOUS_TRANSACTION' statement to define this kind of behaviour. Is there is such a statement in DB2 now?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 11-26-03, 10:36
dcshnier dcshnier is offline
Registered User
 
Join Date: Nov 2003
Location: Baltimore MD
Posts: 21
Talking Re: how to config a Stored Procedure to be run in a new seperated Transaction.

Quote:
Originally posted by Xun_Zhang
Does anyone knows how to config a Stored Procedure to be run in a new, seperated Transaction (Work of Unit) of its own?

Oracle has a 'PRAGMA AUTONOMOUS_TRANSACTION' statement to define this kind of behaviour. Is there is such a statement in DB2 now?

Thanks.
Hi Xun_Zhang

Co-incidentally, your question is similar to the one I posted yesterday regarding 'AUTONOMOUS commits and ROLLBACKS'? We are really asking almost the same question. Although my question is exploring any sort of autonomous method with or without a stored procedure.
So we should follow each other's threads.

regards
dcshnier
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