BUG: Destroying OLE Automation Object May Leave Orphaned SQL Processes (284443)
The information in this article applies to:
- Microsoft SQL Server 2000 (all editions)
- Microsoft SQL Server 7.0
This article was previously published under Q284443
BUG #: 101159 (SQLBUG_70), 351681 (SHILOH)
SYMPTOMS
Destroying an OLE Automation SQLServer object using the sp_OADestroy procedure may leave connections orphaned in SQL Server. This problem is seen under the following conditions:
- The SQLServer.Jobserver.Jobs.Job object is used to manage SQL Server Agent jobs.
- The SQLServer object is not explicitly disconnected by calling the Disconnect method
These processes were all inactive (sleeping) with a waittype of 0. They will remain listed in sysprocesses indefinitely, until they are terminated by the TSQL KILL command or SQL Server is restarted.
WORKAROUND
Use the object Disconnect method to explicitly disconnect the object before destroying it. This is good programming practice.
STATUS
Microsoft has confirmed this to be a problem in SQL Server 7.0 and 2000.
Modification Type: | Major | Last Reviewed: | 10/16/2003 |
---|
Keywords: | kbbug kbpending KB284443 |
---|
|