John,
First of all, if you are not using Sql Server 7 there is _no benefit_ to
turning off sp_reset_connection. We have worked very hard to make this as
efficient as possible in Sql Server 2000 and Yukon. It is highly recommended
that you do not turn this off, in fact we seriously considered taking this
property out altogether. The types of issues that have surfaced when people
turn this off to get "better performance" are scary.
The only reason we decided to leave this feature in is because there is a
performance benefit to avoiding this call when using Sql Server 7. If you
are using Sql Server 7 and you can _absolutely guarantee_ that you will not
do anything that will change the state of the connection you may want to
tweak this for applications that require the highest performance. The most
common way to modify connection state is to do things like change database
and begin transaction. Most of the really bad cases I have seen involve
connections that are closed with a transaction active, with sp_reset the
transaction would roll back before you reuse the connection, without it you
can get a connection that will roll back all the changes you are trying to
do!
--
Angel Saenz-Badillos [MS] Managed Providers
This posting is provided "AS IS", with no warranties, and confers no
rights.Please do not send email directly to this alias.
This alias is for newsgroup purposes only.
previous connection owner said:
How would this manifest itself? Could you provide a simple example?
JL