FIX: DB2OLEDB Insert Fails If DBCS Second Byte Is EBCDIC 0x7D (321809)



The information in this article applies to:

  • Microsoft Host Integration Server 2000

This article was previously published under Q321809

SYMPTOMS

When you perform an insert of double-byte character set (DBCS) characters where the second byte is an EBCDIC 0x7D, and you use the Host Integration Server OLE DB Provider for DB2 driver, you may receive the following error message:
"SQLSTATE:42601 SQLCODE -104"
This error code description indicates that an illegal symbol was encountered in an SQL statement.

CAUSE

The Host Integration Server 2000 OLE DB Provider for DB2 incorrectly sent a single-byte stream, which caused the code to incorrectly interpret the 0x7D (part of the double-byte character) as a quotation mark.

RESOLUTION

To resolve this problem, obtain the latest service pack for Host Integration Server 2000. For additional 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 should have the following file attributes or later:
   Date         Time    Version       Size      File name
   --------------------------------------------------------------
   25-Apr-2002  09:37   5.0.0.836     258,320   Mseidrda.dll
				

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

STATUS

Microsoft 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:MinorLast Reviewed:4/7/2005
Keywords:kbbug kbfix kbHostIntegServ2000preSP1fix kbHostIntegServ2000SP1fix KB321809