FIX: sp_OA Procedures Cause Memory Leak in SQLSERVR.EXELast reviewed: October 31, 1997Article ID: Q151601  | 
	
	
The information in this article applies to:
 
 SYMPTOMSThe use of sp_OA procedures causes a 16K memory leak per connect/disconnect. 
 STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in U.S. Service Pack 3 for Microsoft SQL Server version 6.5. You must also apply Service Pack 3 for Windows NT 4.0. For information on obtaining the NT Service Pack, see the following Knowledge Base article:    
      ARTICLE-ID: Q152734
      TITLE     : How To Obtain the Latest Windows NT 4.0 Service Pack
For more information, contact your primary support provider.
 MORE INFORMATIONRunning the following causes a 16K leak in the SQLSERVR.EXE. isql -E -idmo2.sql 
 ===dmo2.sql=== DECLARE @object int DECLARE @hr int DECLARE @property varchar(255) DECLARE @return varchar(255) -- Create an object EXEC @hr = sp_OACreate 'SQLOLE.SQLServer', @object OUT IF @hr <> 0 EXEC sp_OAGetErrorInfo @object-- Set a property EXEC @hr = sp_OASetProperty @object, 'LoginSecure', 1 IF @hr <> 0 EXEC sp_OAGetErrorInfo @object-- Call a method EXEC @hr = sp_OAMethod @object, 'Connect', NULL IF @hr <> 0 EXEC sp_OAGetErrorInfo @object  | 
	
	Additional query words: sp sproc 
 © 1998 Microsoft Corporation. All rights reserved. Terms of Use.  |