ODBC Driver for DB2 Truncates Binary Data Flow That Includes NULLs (275669)



The information in this article applies to:

  • Microsoft ODBC Driver for DB2 4.0 SP2
  • Microsoft ODBC Driver for DB2 4.0 SP3

This article was previously published under Q275669

SYMPTOMS

If the Microsoft Open Database Connectivity (ODBC) Driver for DB2 is used to retrieve data from a DB2 table that contains a binary field that has NULLs (0x00), then the data is truncated at the first NULL.

For example, if a DB2 table is created and populated with data as follows

CREATE TABLE OWNER.TABLE (COL1 CHAR (5), COL2 VARCHAR (40))
INSERT INTO OWNER.TABLE ('00001', '00x100x200x000x3')

then when you select the COL2, just '00x100x2' is returned.

RESOLUTION

To resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:

215838 How to Obtain the Latest SNA Server Version 4.0 Service Pack


STATUS

Microsoft has confirmed that this is a problem in Microsoft SNA Server version 4.0 Service Pack 2 (SP2) and 4.0 SP3.

This problem was first corrected in SNA Server 4.0 Service Pack 4.

Modification Type:MinorLast Reviewed:3/10/2004
Keywords:kbbug kbfix kbQFE kbSNA400PreSP4fix kbSNA400sp4fix KB275669