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.

ODBC Driver for DB2 May Cause an Access Violation in TakeQryBuff


View products that this article applies to.

Symptoms

The Microsoft Open Database Connectivity (ODBC) Driver for DB2 that is delivered with Microsoft Host integration Server may cause an access violation in the function TakeQryBuff. This occurs when you try to display tables or views on a linked server with Enterprise Manager for Microsoft SQL Server.

↑ Back to the top


Cause

A query buffer is released while the statement handle is NULL.

↑ Back to the top


Resolution

Service pack information

To resolve this problem, obtain the latest service pack for Microsoft Host Integration Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
328152� How to obtain the latest service pack for Host Integration Server 2000

Hotfix information

The English version of this fix has the file attributes (or later) 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.
  Date         Time   Version      Size    File name
   --------------------------------------------------
   10-Dec-2002  15:33  5.0.0.900   311,568  Crtpkg.dll
   10-Dec-2002  15:32  5.0.0.900   667,920  Db2oledb.dll
   10-Dec-2002  15:32  5.0.0.900    53,552  Ddmstr.dll
   10-Dec-2002  15:32  5.0.0.900    78,096  Mseidb2c.dll
   10-Dec-2002  15:33  5.0.0.900   880,912  Mseidb2d.dll
   10-Dec-2002  15:33  5.0.0.900    24,848  Mseidpm.dll
   10-Dec-2002  15:33  5.0.0.900   262,416  Mseidrda.dll
   10-Dec-2002  15:32  5.0.0.900   147,728  Mseidt.dll
   10-Dec-2002  15:33  5.0.0.900    65,808  Crtpkg.exe
   01-Oct-2002  12:17  5.0.0.900    82,192  Ddmserv.exe

				

NOTE: Because of file dependencies, the most recent fix that contains the preceding files may also contain additional files.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in Host Integration Server 2000 and Host Integration Server 2000 Service Pack 1. This problem was corrected in Microsoft Host Integration Server 2000 Service Pack 2.

↑ Back to the top


More information

If Dr. Watson is enabled on your system as the default debugger, the Drwtsn32.log or a User.dmp may show the stack back trace below or a similar stack back trace:
Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.

eax=0fc210b3 ebx=0fbf0650 ecx=00000000 edx=0fc210b3 esi=0d1bc768 edi=0d27cbf8
eip=0f1a323c esp=0ecee3b0 ebp=0ecee3e4 iopl=0   nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=003b  gs=0000  efl=00010202

mseidb2d!drda::Statement::TakeQryBuff+c:

0f1a323c 8b81d4000000     mov     eax,[ecx+0xd4]    ds:0023:000000d4=????????

0:030> kv

ChildEBP RetAddr  Args to Child              
0ecee3e4 0f1b34dc 0fc210b3 0d27cbf8 0f1b3482 mseidb2d!drda::Statement::TakeQryBuff+0xc (FPO: [EBP 0x0ecee448] [1,0,4]) (CONV: thiscall) [j:\depot\his50_se\data\odin\drdaapi\drdaapi\sqlstmt.cpp @ 306]
0ecee3fc 0f1b056d 0d27cbf8 0fbf0680 0d27cbf0 mseidb2d!drda::hdc::CDrdaHostData::Release+0x2c (FPO: [1,0,2]) (CONV: thiscall) [j:\depot\his50_se\data\odin\clients\reno\cdrdahostdata.cpp @ 232]

↑ Back to the top


Keywords: KB810393, kbhotfixserver, kbhis2000fix, kbqfe, kbhostintegserv2000sp1fix, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 810393
Revision : 3
Created on : 9/27/2005
Published on : 9/27/2005
Exists online : False
Views : 398