Single transaction without MTS 
Author Message
 Single transaction without MTS

Hi

From VB can i have transactions to different databases and it should be a
single transaction.

eg:

BeginTrans
    insert some records to DB2 tables
    update some records in  Oracle table
Committrans

ErrorHandler:
Rollbacktrans

I don't want to use MTS. At present i have attached these tables in an
Access .mdb file.  So Access takes care of the transaction.
Other than this roundabout way, do we have any other options.

Thanks in advance

Shelly



Mon, 17 Sep 2001 03:00:00 GMT  
 Single transaction without MTS
How about

DB2.BeginTrans
Oracle.BeginTrans
    insert some records to DB2 tables
    update some records in  Oracle table
DB2.Committrans
Oracle.Committrans

ErrorHandler:
DB2.Rollback
Oracle.Rollback

The only problem I could see would be if somehow you succeeded on the first
commit and
got an error durring the 2nd commit. Not very likely unless the 2nd database
crashed between
updating some records and committing.

Vince



Quote:
>Hi

>From VB can i have transactions to different databases and it should be a
>single transaction.

>eg:

>BeginTrans
>    insert some records to DB2 tables
>    update some records in  Oracle table
>Committrans

>ErrorHandler:
>Rollbacktrans

>I don't want to use MTS. At present i have attached these tables in an
>Access .mdb file.  So Access takes care of the transaction.
>Other than this roundabout way, do we have any other options.

>Thanks in advance

>Shelly



Tue, 18 Sep 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Single transaction without MTS

2. Single transaction without MTS

3. Single transaction without MTS

4. When to use MTS transactions and ADO Transactions

5. newbie - COM with MTS Vs COM without MTS

6. How to use MTS Style Transactions in VB.Net

7. MTS - Microsoft Transaction Server

8. MTS Microsoft Transaction Server

9. Enlisting VBScript in an MTS/COM+ transaction

10. What is an MTS Transaction?

11. Migration MTS projects to 2000, Old References to Transaction Server Type Library

12. Access and MTS and Transactions

 

 
Powered by phpBB® Forum Software