You receive SQL Error -514 when you link to a table that has more than 10 records (321872)
The information in this article applies to:
- Microsoft Host Integration Server 2000
This article was previously published under Q321872 SYMPTOMS
You are using a linked table in Microsoft Access with the Host
Integration Server (HIS) 2000 ODBC Driver for DB2. You connect through
TCP/IP to an IBM mainframe OS390 system, and you receive the following
error message if there are more than 10 records stored in the table:
SQL Error -514 has occurred. Please consult the documentation for your
specific DB2 version for a description of the associated Native Error
and SQL State.
This problem occurs only when you connect to DB2 on a mainframe host
system. The problem does not occur when you connect to DB2 on an AS/400
system.
CAUSE
Because of the way that Access interacts with linked tables, if there
are more than 10 records stored in a table, the ODBC Driver for DB2 may
send a Distributed Data Management (DDM) Close Query (clsqry)
command to the host system in certain situations. When clsqry is
sent to DB2 on a mainframe, the current SQL statement is always
unprepared. When Access tries to fetch the next bulk of stored records
from the linked DB2 database, the ODBC Driver for DB2 will issue a DDM
Query Answer Set Data (qrydta) command. This command fails
because it does not have a PREPARE statement in front of it.
RESOLUTION
To resolve this problem, obtain the latest service pack for 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 Host Integration Server 2000 service pack
The English version of this fix must have the following file attributes
or later:
Date Time Version Size File name
--------------------------------------------------------
25-Apr-2002 15:37 5.0.0.836 258.320 mseidrda.dll
25-Apr-2002 15:37 5.0.0.836 876.816 mseidb2d.dll
25-Apr-2002 15:37 5.0.0.836 78.096 mseidb2c.dll
Note Because of file dependencies, the most recent fix that
contains the preceding files may also contain additional files. STATUSHost Integration Server 2000Microsoft has confirmed that this is a problem in Host Integration Server 2000. This problem was first corrected in Host Integration Server 2000 Service Pack 1.
Modification Type: | Minor | Last Reviewed: | 4/29/2005 |
---|
Keywords: | kbbug kbfix kbHostIntegServ2000preSP1fix kbHostIntegServ2000SP1fix KB321872 kbAudDeveloper |
---|
|