In the event viewer following error is shown for SQL server:
The client was unable to reuse a session with SPID 55, which had been reset
for connection pooling. The failure ID is 29. This error may have been caused
by an earlier operation failing. Check the error logs for failed operations
immediately before this error message.
Any suggestions/ideas would be greatly appreciated.
Thanks,
--
skc
I also found
http://social.msdn.microsoft.com/Forums/en-SG/sqldatabaseengine/thread/af79c38f-3996-49f6-b5a8-fe10e29b13f8
which also gives some information about the underlying problem. Although
there is no direct resolution, it is possible it may give some ideas
how you should work around the problem.
--
Erland Sommarskog, SQL Server MVP, esq...@sommarskog.se
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
The same thing might happen if you open a recordset but you don't fully read
it and you don't close it. Always close explicitely any opened recordset;
especially if you don't fully read them.
Another possibility would be a time-out ocurring for the ASP or ASP.NET page
because the code take to long; as this will also leave open any transaction
and locks and will require the connection to be marked as to be Reset. If
time-outs happen frequently, change your code for more performance, increase
the time-out period or use the XACT_ABORT option ON. You could also
deactivate the connection pooling.
See http://support.microsoft.com/kb/224453 for more details.
--
Sylvain Lafontaine, ing.
MVP - Windows Live Platform
Blog/web site: http://coding-paparazzi.sylvainlafontaine.com
Independent consultant and remote programming for Access and SQL-Server
(French)
"skc" <s...@discussions.microsoft.com> wrote in message
news:61B862C4-77DF-46B0...@microsoft.com...
"Sylvain Lafontaine" <sylvainlaf...@yahoo.ca> wrote in message
news:eRIRR9K7...@TK2MSFTNGP04.phx.gbl...
This is a very surprising statement and honestly, the use of transactions is
not limited to the cases where you want (or have the possibility) to write
to the database. Transactions are also about consistency of data over some
period of time; for example when you have to build a report based on some
active data - data that could change between the beginning and the finishing
of the report - but still want it consistent.
Probably that I could get other examples but suffice to say that when you
read litterature about transactions and locks, the possibility that these
should be reserved to writings and updates is never mentionned.