Help and Support

FIX: Execution of sp_OACreate on COM Object Without Type Information Causes Server Shut Down

Article ID:282279
Last Review:October 9, 2003
Revision:3.0
This article was previously published under Q282279
BUG #: 351375 (SHILOH_bugs)
On This Page

SYMPTOMS

SQL Server contains a set of system procedures "sp_OA..." to allow interaction with COM objects.

If the COM object does not support type information, SQL Server logs an access violation exception reading address 0x00000000 and then shuts down the computer. The top of the stack trace fill contains the following:

Module(odsole70+00003A2B) (CCachedTypeInfo::~CCachedTypeInfo(void))
Module(odsole70+000038FF) (CCachedTypeInfo::`scalar deleting destructor')
Module(odsole70+000029DE) (CODSOLEThreadInfo::UnlinkCTypeInfo())
Module(odsole70+000027DD) (CODSOLEThreadInfo::~CODSOLEThreadInfo())
Module(odsole70+000049EB) (OAUninitialize())
Module(sqlservr+0046A624) (PSS::ResetFromBatch())
				

Back to the top

CAUSE

When the COM object does not support type information, the sp_OA stored procedures attempt to free a NULL pointer, causing the exception to occur.

Back to the top

RESOLUTION

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 (http://support.microsoft.com/kb/290211/EN-US/) INF: How to Obtain the Latest SQL Server 2000 Service Pack

Back to the top

Hotfix

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:
   File name   Platform
   --------------------

   8.00.231    Intel
				
NOTE: Due to file dependencies, the most recent hotfix or feature that contains the preceding files may also contain additional files

Back to the top

WORKAROUND

Make sure that the object supports IDispatch::GetTypeInfo.

Back to the top

STATUS

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

Back to the top


APPLIES TO
Microsoft SQL Server 2000 Standard Edition

Back to the top

Keywords: 
kbbug kbfix kbqfe kbsqlserv2000sp1fix KB282279

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.