Sahil
Mon Nov 28 21:17:48 CST 2005
Julia,
Tranasctions are like ice-cream
They come in many flavors, they are almost always fattening, and they are
kinda necessary ;-)
So the various flavors are
a) Implicit Tranasctions
b) Explicit Transactions in the API
c) Explicit Transactions in Stored procedures
d) System.Transactions - volatile
e) System.Transactions - pspe
f) System.Transactions - durable
g) Loosely coupled systems with home grown 2pc
.. So which one do you pick? "The lowest one you can get away with". :)
There are certain very isolated incidents where explicit transactions may
actually outperform implicit transactions in a single user scenario, and
there are other nuances based on your exact design and requirements that
guide you to the final architectural choice. I would recommend reading up
Chapter 11 of my ADO.NET 2.0 book (see signature) where I talk about
transactions in depth.
- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.malik/archive/2005/05/13/63199.aspx
----------------------------------------------------------------------------
"Julia" <Julia@discussions.microsoft.com> wrote in message
news:C2180291-6D50-42F2-83A6-8AF2533DBB10@microsoft.com...
> Hi,
> I'am developing an asp.net app that is using an sql server.
>
> How should I deal with transactions? Should I do the transactions in my
> stored procedures or should I use Serviced Components or...
>
> Thanks