Microsoft KB Archive/275669

From BetaArchive Wiki
Knowledge Base


ODBC Driver for DB2 Truncates Binary Data Flow That Includes NULLs

Article ID: 275669

Article Last Modified on 3/10/2004



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.


Additional query words: MSDB2OLE AS/400 OS/400 OS/390 Mainframe DB2/MVS DB2/NT sp2 sp3 null's

Keywords: kbbug kbfix kbsna400presp4fix kbqfe kbsna400sp4fix KB275669