Microsoft KB Archive/315461

= DOC: Misleading Statement in &quot;Connection Pooling for .NET Data Provider&quot; Documentation =

PSS ID Number: 315461

Article Last Modified on 1/23/2004

-

The information in this article applies to:


 * Microsoft ADO.NET (included with the .NET Framework) 1.0
 * Microsoft ADO.NET (included with the .NET Framework 1.1)

-



This article was previously published under Q315461



SUMMARY
The Connection Pooling for the SQL Server .NET Data Provider and the Connection Pooling for the OLE DB .NET Data Provider MSDN documentation states the following in the &quot;CAUTION&quot; note:

You must always close the Connection when you are finished using it. This can be done using either the Close or Dispose methods of the Connection object. Connections that are not explicitly closed are not added or returned to the pool.



MORE INFORMATION
This statement should read as follows:

You should always close the Connection when you are finished using it. This can be done using either the Close or Dispose methods of the Connection object. Connections that are not explicitly closed may not be added or returned to the pool. For example, a connection that has gone out of scope, but has not been explicitly closed, is returned to the connection pool only if the maximum pool size has been reached and if the connection is still valid.

Additional query words: kbreadme

Keywords: kbdocerr kbfix kbprb kbSystemData KB315461

Technology: kbADONET100 kbADONET110 kbADONETSearch kbADOsearch kbAudDeveloper

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.