Microsoft KB Archive/307540

= FIX: SQLPutData May Result in Leak of Buffer Pool Memory =

Article ID: 307540

Article Last Modified on 9/26/2005

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition
 * Microsoft SQL Server 7.0 Standard Edition

-



This article was previously published under Q307540



BUG #: 355451 (SHILOH_BUGS)



SYMPTOMS
An ODBC application that uses the SQLPutData API may cause a leak of buffer pool memory with each invocation. This buffer pool memory cannot be reclaimed and over time may cause SQL Server to run out of buffer pool memory. This condition can cause the SQL Server program to stop responding (hang). One of the most visible symptoms of the problem is Error 17803 as seen in the SQL Server error log.



SQL Server 2000
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 2000. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

290211 INF: How to Obtain the Latest SQL Server 2000 Service Pack

NOTE: The following hotfix was created prior to Microsoft SQL Server 2000 Service Pack 2.

The English version of this fix should have the following file attributes or later:   Version     File name       Platform

8.00.444   Sqlservr.exe    i386 NOTE: Because of file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files.

SQL Server 7.0
To resolve this problem, obtain the latest service pack for Microsoft SQL Server 7.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

301511 INF: How to Obtain the Latest SQL Server 7.0 Service Pack



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

SQL Server 2000

This problem was first corrected in Microsoft SQL Server 2000 Service Pack 2.

SQL Server 7.0

This problem was first corrected in Microsoft SQL Server 7.0 Service Pack 4.



MORE INFORMATION
In SQL Server 2000, each invocation of SQLPutData results in a leak of buffer pool memory of approximately 8 K. In SQL Server 7.0 the leak of buffer pool memory is approximately 272 bytes. The only way to reclaim the memory is to restart SQL Server.

It is important to note that although a 17803 error message that occurs when a user connects is a symptom of this problem, the error message can also occur in other circumstances outside of the scope of this problem.

Keywords: kbbug kbfix kbqfe kbhotfixserver KB307540

-

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

© Microsoft Corporation. All rights reserved.