When to use MTS transactions and ADO Transactions 
Author Message
 When to use MTS transactions and ADO Transactions

Hi:

I would like to understand when you should handle transactions using the
ADO Connection methods for handling transactions and when it is better
to use the MTS for handling transactions?  Are there any rules of thumb
for this?

Thanks,

Sid Connor



Tue, 16 Jul 2002 03:00:00 GMT  
 When to use MTS transactions and ADO Transactions
MTS is more than just database transactions, it will commit or
abort/rollback all changes done by all objects in a transaction. If all you
need is database transactions on a single connection I would stick to ADO.

--
Regards

Carsten Thomsen
MCSE/VB Programmer & Analyst

PLEASE post ALL replies to the newsgroup(s) so we can all benefit from the
discussion!


Quote:
> Hi:

> I would like to understand when you should handle transactions using the
> ADO Connection methods for handling transactions and when it is better
> to use the MTS for handling transactions?  Are there any rules of thumb
> for this?

> Thanks,

> Sid Connor



Wed, 17 Jul 2002 03:00:00 GMT  
 When to use MTS transactions and ADO Transactions


Quote:
> I would like to understand when you should handle transactions using
the
> ADO Connection methods for handling transactions and when it is better
> to use the MTS for handling transactions?  Are there any rules of
thumb
> for this?

You should NEVER use the BeginTrans method of the ADO connection
object.  This locks a whole bunch of stuff on the server until there is
a CommitTrans.  If you have an application that has a large number of
concurrent users, then this is a guaranteed way to have an application
that sucks.

I don't know enought about MTS to comment.  My hunch is that MTS's
benefits are vastly overhyped.

Keep all of your transactions in stored procedures, and then all will
be much better.  The tables in question will be locked for only a
fraction of the time as they would have if you used ADO transactions.

Sent via Deja.com http://www.deja.com/
Before you buy.



Fri, 19 Jul 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Transaction scope using ADO with SQL Server 7 and MTS

2. ADODB TRANSACTION ADO ERROR No Transaction is Active

3. ADODB TRANSACTION ADO ERROR No Transaction is Active

4. ADO Connection Transaction vs. ObjectContext Transaction

5. SQL7 + MTS + ADO : Select with where clause : Locks entrire table until Transaction ended

6. VB MTS Component, ADO, and "Transactions"

7. VB MTS Component, ADO, and "Transactions"

8. Problems with transactions using MTS 2

9. Transactions using ADO.NET in mulit-tier envrionment

10. Transaction for Oracle DB using ADO fails

11. Catastrophic Failure on ADO update using Transactions

12. ADO and transactions using Informix

 

 
Powered by phpBB® Forum Software