Re: How to stop TransactionScope from starting distributed transaction
- From: "Sahil Malik [MVP C#]" <contactmethrumyblog@xxxxxxxxxx>
- Date: Thu, 9 Mar 2006 15:21:55 -0500
Are you using SQL Server 2000? If so, your transaction will be distributed
and you can't help that.
- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
----------------------------------------------------------------------------
"BF" <BF@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:9A5DB05A-BA0F-480D-8E4E-55F6EDC0362F@xxxxxxxxxxxxxxxx
When I use TransactionScope in my code, I got error message saying "cannot
use SAVE TRANSACTION in distributed transaction". This is because I have
SAVE
TRANSACTION in one of my stored procedures.
It looks like TransactionScope automatically starts distributed
transaction
even I only access one SQL server database. Does anybody know how to stop
TransactionScope from starting distributed transactions? In my
application,
it should be only local transactions.
Thanks a lot.
.
- Prev by Date: Re: TransactionScope link to remote server has firewall problem
- Next by Date: Read Dataset from webservice and update local sql server!!
- Previous by thread: Re: TransactionScope link to remote server has firewall problem
- Next by thread: Re: How to stop TransactionScope from starting distributed transac
- Index(es):
Relevant Pages
|