Is it possible to execute two stored proc calls with SQL adapter in one atomic transac
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Is it possible to execute two stored proc calls with SQL adapter in one atomic transac




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Is it possible to execute two stored proc calls with SQL adapter in one atomic transac  
Sam Vanhoutte


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-02-05 07:47 AM

Hello,

I tried to make following POC with the SQL adapter:

I have two different stored procedures.  The first allways executes
well, the second one tries to insert a null value in a nullable column
(to force an exception).  The desired behavior is that these SQL calls
occur in one atomic transaction and that the first stored proc gets
rolled back after the second one crashes.

If I work with the SQL adapter send calls in an atomic scope, they only
get rolled back, when an exception is thrown in that atomic scope.  So
it would be great to retrieve the exception from the stored proc in the
atomic scope.  But offcourse, this is only possible in the long running
scopes (delivery notification exceptions).

So, what I'd like to know is if it's possible to send two different SQL
messages for stored procs in one DTC transaction.

I understand that the atomic scope should not run for more than a few
seconds (locking etc).  So what about retries etc. of the SQL adapter?
Will these retries still be in the same distributed transaction?

Any comments on this will be greatly appreciated!

Best regards,
Sam Vanhoutte
CODit Belgium






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:05 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register