Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

ODBC for DB2 Driver Fails with Not Valid Datatype Error


View products that this article applies to.

This article was previously published under Q327894

↑ Back to the top


Symptoms

When you try to submit special select statements against a DB2 Table by using the Microsoft Open Database Connectivity (ODBC) for DB2 driver that is delivered with Microsoft Host Integration Server 2000, you may get an error message that indicates not valid datatype values.

↑ Back to the top


Cause

Under certain conditions, the ODBC Driver for DB2 driver does not process a NULL row marker byte. This causes the whole buffer to be off by one byte. Therefore, all later rows contain corrupted values.

↑ Back to the top


Resolution

A supported hotfix is 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.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, submit a request to Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if 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. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language. The English version of this fix has the file attributes (or later) 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 tool in Control Panel.
   Date         Time   Version      Size     File name
   -------------------------------------------------------
   13-Aug-2002  15:13  5.0.0.900    880,912  Mseidb2d.dll
				

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

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in Host Integration Server 2000.

↑ Back to the top


More information

When a SELECT statement is issued, the host returns an SQL Communication Area Reply Data (SQLCARD). In this case, the returned SQLSTATE is "00000" in the second row of data. This indicates any special condition, such as an empty column, that is a result of an OUTER JOIN statement. Because the SQLSTATE is all zeros, the ODBC Driver for DB2 skips the SQLCARD and moves on to parse the next byte in the data buffer. This is a QRYDTA NULL row marker because this column is empty. The NULL row marker is skipped in error, therefore causing the whole data buffer to be off by one byte.

↑ Back to the top


Keywords: KB327894, kbqfe, kbfix, kbbug, kbqfe, kbhotfixserver, kbautohotfix

↑ Back to the top

Article Info
Article ID : 327894
Revision : 6
Created on : 10/11/2005
Published on : 10/11/2005
Exists online : False
Views : 281