FIX: A connection failure may be reported even though the database server is actually available when you try to connect to a database by using the SqlConnection object in ADO.NET 2.0 (913176)
The information in this article applies to:
- Microsoft .NET Framework 2.0
SYMPTOMSWhen you try to connect to a database by using the SqlConnection object in Microsoft ADO.NET 2.0, a connection failure may be reported even though the database server is actually available. This problem is most noticeable when the following conditions are true: - The database server has been unavailable for at least a minute.
- The client application has tried to connect to the database server during that time.
CAUSEThis problem occurs because of behavior that occurs when previous connection attempts to the server that is running Microsoft SQL Server fail. The SqlClient connection pool may internally throttle the number of new connection attempts to the server. This process is intended to occur for a short time. During this time, the connection pool automatically reports the last error that occurred instead of making a connection attempt to the server. After the time period has expired, the next connection request from the client application achieves a true connection to the server that is running SQL Server.
Note Sometimes, the time period can grow very large. This problem will depend on how long the database server is unavailable.WORKAROUNDTo work around this problem, use the ClearPool or ClearAllPools methods of the SqlConnection object to reset the connection pool. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Modification Type: | Major | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbBug kbfix kbQFE kbpubtypekc KB913176 kbAudDeveloper kbAudITPRO |
---|
|