FIX: Invoking SQL-DMO Methods By Using "By Reference" Parameters May Cause a Memory Leak

This article was previously published under Q293636
This article has been archived. It is offered "as is" and will no longer be updated.
BUG #: 352109 (SHILOH)
BUG #: 101273 (SQLBUG_70)
SYMPTOMS
If you invoke SQL-DMO methods by using "by reference" parameters, a memory leak of private bytes in the Microsoft Windows NT system heap equal to the size of the parameter value may occur.
RESOLUTION

SQL Server 2000

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 theMicrosoft 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 1.

The English version of this fix should have the following file attributes or later:
   Version      File name       Platform   -------------------------------------   8.00.253     s80253i.exe     Intel				
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 theMicrosoft 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 1.

SQL Server 7.0
This problem was first corrected in Microsoft SQL Server 7.0 Service Pack 4.
MORE INFORMATION
The Transact-SQL stored procedure sp_OAMethod passes all parameters to any COM object "by reference." Therefore, any use of the sp_OAMethod stored procedure with SQL-DMO methods results in a memory leak on each invocation if the method accepts parameter values.
Properties

Article ID: 293636 - Last Review: 01/16/2015 22:06:08 - Revision: 3.1

  • Microsoft SQL Server 2000 Standard Edition
  • Microsoft SQL Server 7.0 Standard Edition
  • kbnosurvey kbarchive kbbug kbfix kbsqlserv2000sp1fix KB293636
Feedback