|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
scope of ado.net transactions and connectionsAccording to the ms patterns and practices, one should keep a database connection as short as possible open. I assume that, when you have a server request which does some reads during its business logic, and than performs an update of the database, several connection objects can be instantiated, opened and cloased as soon a db access has been made. Since connection pooling is default on, this is no problem since one uses the same connection from the pool. When you want to do this in a sqltransaction, whih spans the whole request handling, one has to instantiate one and only one connection, and than start the sqltransaction on this connection. This implies that the connection has to stay open during the whole procedure, until the database is committed. This is a bit contradictory. Can anyone give some input on this ? thanks!
Other interesting topics
Article : Soapsuds.exe (.Net Framework tools series)
Article : Security Tools Part -- 2 (.Net FrameWork Tools Series) Article: What is Isolated Storage ? (.Net FrameWork Tools Series) Article : Security Tools Part -- 1 (.Net FrameWork Tools Series) Article : What is Migpol ? (.Net FrameWork Tools Series) |
|||||||||||||||||||||||