Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: A memory leak may occur when you use the sp_OAMethod stored procedure to call a method of a COM object


View products that this article applies to.

Symptoms

When you call a method of a COM object by using the sp_OAMethod SQL Server OLE Automation stored procedure and the method of the COM object returns the results in the output parameters, a memory leak may occur on your computer. If you repeatedly call the method of the COM object, the computer that is running Microsoft SQL Server 2000 may stop responding.

↑ Back to the top


Cause

This problem occurs because the computer that is running SQL Server does not release the memory that is allocated to the variable that is holding the output parameter value.

↑ Back to the top


Resolution

Service pack information

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 How to obtain the latest SQL Server 2000 service pack

Hotfix information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in coordinated universal time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time tool in Control Panel.

SQL Server 2000 Service Pack 2

This hotfix build is designed to be applied on a server that is running SQL Server 2000 Service Pack 2:
   Date         Time   Version         Size       File name
   -------------------------------------------------------------------
   24-Jan-2003  05:23  2000.80.732.0      29,244  Dbmslpcn.dll     
   17-Jan-2003  12:53                    786,432  Distmdl.ldf
   17-Jan-2003  12:53                  2,359,296  Distmdl.mdf
   11-Dec-2002  04:20                        180  Drop_repl_hotfix.sql
   02-Jul-2002  02:05  2000.80.650.0     107,088  Impprov.dll      
   17-Jan-2003  07:03                    774,409  Instdist.sql
   11-Dec-2002  04:20                      1,402  Inst_repl_hotfix.sql
   20-Aug-2002  02:54  2000.80.679.0     111,172  Logread.exe      
   15-Dec-2002  09:51  2000.80.717.0      90,692  Msgprox.dll      
   05-Mar-2003  04:47  2000.80.736.0      62,024  Odsole70.dll     
   02-Jan-2002  12:29                     18,185  Qfe356326.sql
   20-Aug-2002  03:17  2000.80.679.0     135,748  Qrdrsvc.exe      
   26-Aug-2002  09:19  2000.80.679.0     406,088  Rdistcom.dll     
   03-Oct-2001  12:06                    437,302  Replcom.sql
   20-Aug-2002  03:03  2000.80.679.0     152,136  Replmerg.exe     
   25-Nov-2002  08:13                  1,004,990  Replmerg.sql
   15-Dec-2002  09:51  2000.80.717.0     221,768  Replprov.dll     
   15-Dec-2002  09:51  2000.80.717.0     303,688  Replrec.dll      
   22-Jan-2003  05:57                  1,002,101  Replsys.sql
   03-Oct-2001  12:06                    881,228  Repltran.sql
   26-Aug-2002  09:19  2000.80.679.0     283,208  Rinitcom.dll     
   16-Sep-2002  09:01                    390,045  Securityhotfix.sql
   26-Aug-2002  09:19  2000.80.679.0      28,672  Sqlagent.dll     
   26-Aug-2002  05:09  2000.80.679.0     311,872  Sqlagent.exe     
   28-Aug-2002  03:02  2000.80.679.0      49,152  Sqlagent.rll
   26-Aug-2002  09:19  2000.80.679.0      53,824  Sqlcmdss.dll     
   28-Aug-2002  03:10  2000.80.679.0      12,288  Sqlcmdss.rll
   14-Jan-2003  08:09  2000.80.725.0     172,600  Sqlmap70.dll     
   03-Mar-2003  08:25  2000.80.736.0   7,467,092  Sqlservr.exe     
   01-Nov-2002  05:26  2000.80.698.0      45,644  Sqlvdi.dll       
   24-Jan-2003  05:23  2000.80.732.0      29,244  Ssmslpcn.dll     
   24-Jan-2003  05:23  2000.80.732.0      82,492  Ssnetlib.dll     
   02-Jan-2003  06:42  2000.80.722.0      25,148  Ssnmpn70.dll     
   06-Apr-2002  12:38  2000.80.606.0      70,208  Xplog70.dll      
   06-Apr-2002  12:38  2000.80.606.0      53,828  Xpqueue.dll      
   06-Apr-2002  12:38  2000.80.606.0     156,228  Xprepl.dll       
   11-Jul-2002  11:30  2000.80.658.0     279,104  Xpstar.dll       
   16-Sep-2002  09:42  2000.80.686.0      98,872  Xpweb70.dll      

SQL Server 2000 Service Pack 3

This hotfix build is designed to be applied on a server that is running SQL Server 2000 Service Pack 3:
   Date         Time   Version        Size       File name
   ------------------------------------------------------------------
   26-Feb-2003  03:41  2000.80.777.0     29,244  Dbmslpcn.dll     
   08-Feb-2003  05:43                   786,432  Distmdl.ldf
   08-Feb-2003  05:43                 2,359,296  Distmdl.mdf
   30-Jan-2003  01:55                       180  Drop_repl_hotfix.sql
   01-Feb-2003  00:32  2000.80.763.0  1,557,052  Dtsui.dll        
   30-Jan-2003  05:18                   746,470  Instdist.sql
   30-Jan-2003  01:55                     1,402  Inst_repl_hotfix.sql
   08-Feb-2003  06:40  2000.80.765.0     90,692  Msgprox.dll      
   01-Apr-2003  02:07                     1,873  Odsole.sql
   05-Apr-2003  01:46  2000.80.800.0     62,024  Odsole70.dll     
   02-Apr-2003  21:48  2000.80.796.0     57,904  Osql.exe         
   02-Apr-2003  23:15  2000.80.797.0    279,104  Pfutil80.dll     
   04-Apr-2003  21:27                 1,083,467  Replmerg.sql
   04-Apr-2003  21:53  2000.80.798.0    221,768  Replprov.dll     
   08-Feb-2003  06:40  2000.80.765.0    307,784  Replrec.dll      
   01-Apr-2003  02:23                 1,084,828  Replsys.sql
   03-Apr-2003  18:14                   104,868  Sp3_serv_uni.sql
   19-Mar-2003  18:20  2000.80.789.0     28,672  Sqlevn70.rll
   28-Feb-2003  01:34  2000.80.778.0    176,696  Sqlmap70.dll     
   08-Feb-2003  06:40  2000.80.765.0     57,920  Sqlrepss.dll     
   05-Apr-2003  01:47  2000.80.800.0  7,540,817  Sqlservr.exe     
   08-Feb-2003  06:40  2000.80.765.0     45,644  Sqlvdi.dll       
   26-Feb-2003  03:41  2000.80.777.0     29,244  Ssmslpcn.dll     
   26-Feb-2003  03:41  2000.80.777.0     82,492  Ssnetlib.dll     
   17-Mar-2003  14:49                   727,132  Sysmessages.sym
   28-Feb-2003  01:34  2000.80.778.0     98,872  Xpweb70.dll  

Note Because of file dependencies, the most recent hotfix or feature that contains these files may also contain additional files.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.This problem was first corrected in Microsoft SQL Server 2000 Service Pack 4.

↑ Back to the top


References

For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
293636 FIX: Invoking SQL-DMO methods by using "By Reference" parameters may cause a memory leak
824684 Description of the standard terminology that is used to describe Microsoft software updates

↑ Back to the top


Keywords: kbcomservices, kbstoredproc, kbsqlserv2000presp4fix, kbfix, kbbug, KB816937, kbqfe, kbqfe, kbhotfixserver, kbmemory

↑ Back to the top

Article Info
Article ID : 816937
Revision : 8
Created on : 11/2/2007
Published on : 11/2/2007
Exists online : False
Views : 516