Article ID: 837221 - Last Review: November 27, 2007 - Revision: 2.6 You cannot debug a SQL Server stored procedure more than one time while debugging managed .NET Framework code in Visual Studio 2005 or in Visual Studio .NETImportant This article contains information about modifying the registry. Before you modify the registry, make sure to back it up and make sure that you understand how to restore the registry if a problem occurs. For information about how to back up, restore, and edit the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986
(http://support.microsoft.com/kb/256986/
)
Description of the Microsoft Windows Registry SYMPTOMSYou may not be able to debug a Microsoft SQL Server stored procedure more than one time from the native code or from the managed .NET Framework code if the following conditions are true:
CAUSEConnection pooling is a technique to improve application performance. When the application closes its data connection, the connection to the computer that is running SQL Server is not completely closed. The connection is held in a pool so that the connection can be reused if the application tries to reopen the connection later. However, when a connection is re-established through connection pooling, SQL debugging is not re-enabled. WORKAROUNDTo work around this behavior, turn off the connection pooling feature. To do this, use one of the following methods:
STATUS This behavior is by design. MORE INFORMATIONSome more connection string keywords used for controlling the connection pooling:
REFERENCESFor more information about SQL debugging components and about how to set up SQL debugging, visit the following Microsoft Developer Network (MSDN) Web sites: http://msdn2.microsoft.com/en-us/library/Aa292301(VS.71).aspx
(http://msdn2.microsoft.com/en-us/library/Aa292301(VS.71).aspx)
For additional information, click the following article numbers to view the articles in the Microsoft Knowledge Base:
http://msdn2.microsoft.com/en-us/library/s4sszxst(vs.71).aspx (http://msdn2.microsoft.com/en-us/library/s4sszxst(vs.71).aspx) 318606
(http://support.microsoft.com/kb/318606/
)
SQL Server ODBC driver resets connection attributes when used in connection pooling
166083
(http://support.microsoft.com/kb/166083/
)
How to enable connection pooling in an OLE DB application
815116
(http://support.microsoft.com/kb/815116/
)
You cannot debug a SQL Server stored procedure in Visual Studio .NET
830118
(http://support.microsoft.com/kb/830118/
)
"Timeout expired" error message when you run a Visual Studio .NET 2003 application
APPLIES TO
| Article Translations
|
Back to the top
