Microsoft KB Archive/921951

= FIX: The OLE DB provider for DB2 for Host Integration Server 2002 SP2 or 2004 converts certain characters to space characters when you execute an Insert command or an Update command against an IBM DB2 database =

Article ID: 921951

Article Last Modified on 12/4/2007

-

APPLIES TO


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

-





SYMPTOMS
When you execute an Insert command or an Update command against an IBM DB2 database, the OLE DB provider for DB2 that is included with Microsoft Host Integration Server 2000 Service Pack 2 (SP2) and with Microsoft Host Integration Server 2004 converts certain characters to space characters (0x20). The OLE DB provider converts characters that have a value that is lower than 0x20.

For example, this problem occurs when a column in an IBM DB2 table has to be updated with the following value:

Test Field

In this example, the  value represents the character value for a carriage return (ASCII 0x0D). The  value represents the character value for a line feed (ASCII 0x0A).

When this problem occurs, the OLE DB provider for DB2 incorrectly converts the carriage return character and the line feed character to ASCII space characters (0x20) before the OLE DB provider sends the information to the IBM DB2 database.



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

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

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

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

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.

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

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

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

Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

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.



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



MORE INFORMATION
After you apply this hotfix, the OLE DB provider for DB2 correctly converts characters that have a value that is lower than 0x20 before the OLE DB provider sends the data to an IBM DB2 database.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Additional query words: DB2 OLEDB character 0x20 space

Keywords: kbqfe KB921951

-

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

© Microsoft Corporation. All rights reserved.