Microsoft KB Archive/909602

= FIX: The OLE DB Provider for DB2 in Host Integration Server 2004 truncates string (CHAR) data that includes NULL characters when you insert or retrieve data from an IBM DB2 database =

Article ID: 909602

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2004 Enterprise Edition
 * Microsoft Host Integration Server 2004 Standard Edition

-



SYMPTOMS
The OLE DB Provider for DB2 that is included in Microsoft Host Integration Server 2004 truncates string (CHAR) data that includes NULL (0x00) characters. This problem occurs when you insert or retrieve data from an IBM DB2 database.

For example, consider the following scenario. You have an IBM DB2 database table that is named TEST_TABLE. The TEST_TABLE table contains the following data.

Note The data that is shown in this table is Extended Binary Coded Decimal Interchange Code (EBCDIC) data. For example, the EBCDIC value X’E9’ equals the letter 'Z' in ASCII, and the EBCDIC value X’C1’ equals the letter 'A' in ASCII.

You run the following SQL query against the TEST_TABLE table by using the OLE DB provider for DB2:

SELECT * FROM SCHEMA1.TEST_TABLE

The following data is returned to the calling application after the data is converted from EBCDIC to ASCII.

In this scenario, the OLE DB Provider for DB2 returns no data for the first value in COLUMN_2. Additionally, the OLE DB Provider for DB2 truncates the trailing NULL characters for the second value in COLUMN_2.



CAUSE
This problem occurs because the OLE DB Provider for DB2 was not designed to allow NULL characters to be inserted or retrieved from IBM DB2 database character (CHAR) data types.



Hotfix information
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

File information
The English version of this hotfix has the file attributes (or later file attributes) 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 item in Control Panel.

Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.

Additional query words: OLEDB DB2 truncate

Keywords: kbbug kbfix kbqfe kbpubtypekc kbhotfixserver KB909602

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.