Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transaction vs. TransactionScope
Message
 
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01155025
Message ID:
01156013
Views:
28
I tried it on my local pc and it did not promote to DTC. It's easy enough to check by opening Component Services and navigate to "Component Services\My Computer\Distributed Transaction Coordinator\Transaction List" and watch for a transaction. Set a breakpoint in your code after you open the connection within the TransactionScope block to be sure you see any distributed transactions.

>Hi,
>
>>>If all operations are performed on a single connection though then the transactions uses plain ADO.NET transactions.
>>
>>Should point out that the transaction will be a local non-distributed transaction only if connecting to SQL Server 2005. If you connect to any other database server including SQL Server 2000 it will promote to a full DTC transaction. This is because the other database resource managers do not support the automatic promotion of local transactions to distributed.
>
>Do you know which camp SQL Server Express falls in?
>Regards,
>Viv
Michael McLain
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform