Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transaction vs. TransactionScope
Message
De
22/09/2006 09:32:49
 
 
À
19/09/2006 12:20:15
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01155025
Message ID:
01156390
Vues:
20
Hi,

>To use transaction scope, I am pretty sure you need to have Microsoft Distributed Transaction Coordinator configured whereas you don't if you use a plain old transaction.

Are you referring to the ADO transaction from 1.1?

I think that in NET2 the TransactionScope class is pretty much just a wrapper to simplify coding. The following will also start a transaction in the DTC (assuming it's not a SQL2005/SQLExpress connection) :
CommittableTransaction tx = new CommittableTransaction();
connection.EnlistTransaction(tx);
Regards,
Viv
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform