dbTalk Databases Forums  

Handle Transaction

microsoft.public.sqlserver.clients microsoft.public.sqlserver.clients


Discuss Handle Transaction in the microsoft.public.sqlserver.clients forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Noor
 
Posts: n/a

Default Handle Transaction - 04-12-2008 , 05:30 PM






Just want to clarify one thing before i have to BEGIN DISTRIBUTED
TRANSACTION on production boxes. here is an example.

SET xact_abort ON
BEGIN DISTRIBUTED TRANSACTION

UPDATE Table on LocalServer

UPDATE Table on RemoteServer

COMMIT

Should I implement the error handling right after each updates? to make sure
both the transaction successfully works then COMMIT everything else ROLLBACK
every thing.

I can give you one example, I want to Withdraw the money from one account
which is on Database1 and I want to deposit the amount which is Datbase2. I
want to make sure if deposit the transaction succcessfully completed then it
will commit the transaction.

Please advice, how I can do with BEGIN DISTRIBUTED TRANSACTION

Thanks







Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.