Microsoft KB Archive/290814

= FIX: xp_readmail Leaks Memory if Message Contains Attachment =

Article ID: 290814

Article Last Modified on 11/6/2003

-

APPLIES TO


 * Microsoft SQL Server 2000 Standard Edition

-



This article was previously published under Q290814



BUG #: 352312 (SHILOH_bugs)



SYMPTOMS
Calling the xp_readmail extended procedure to read a message that contains one or more attachments leaks memory. The memory leak is associated with some data structures allocated to hold information about the attachment, such as its size and the filename.



RESOLUTION
To resolve this problem, obtain the latest service pack for 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



STATUS
Microsoft has confirmed that this is a problem in SQL Server 2000. This problem was first corrected in SQL Server 2000 Service Pack 1.



MORE INFORMATION
You can see the memory leak by using the System Monitor or Performance Monitor and viewing the &quot;Private Bytes&quot; counter for the sqlservr process. The rate at which SQL Server memory usage increases depends on the number of attachments per message and the length of the attachment names. Attachments with long file names result in more memory being allocated and a faster leak.

Keywords: kbbug kbfix kbsqlserv2000sp1fix KB290814

-

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

© Microsoft Corporation. All rights reserved.