Microsoft KB Archive/842650

= FIX: You receive an &quot;unexpected data length&quot; error message when you try a join in the Host Integration Server 2000 OLE DB Provider for D2 =

Article ID: 842650

Article Last Modified on 6/5/2006

-

APPLIES TO


 * Microsoft Host Integration Server 2000 Standard Edition
 * Microsoft Host Integration Server 2000 Service Pack 1

-





SYMPTOMS
When you use the Microsoft Host Integration Server 2000 OLE DB Provider for DB2 with multiple code pages, you may receive an error message when you try a join. For example, you may use the following query: SELECT * FROM OPENQUERY (SAMPLE,'SELECT IPROD,IDESC,APROD,AFMT FROM AAAAA.BBB, DESC.CCCC WHERE IPROD = APROD') When you do this, you receive the following error message:

Server: Msg 7347, Level 16, State 1, Line 1 OLE DB provider 'DB2OLEDB' returned an unexpected data length for the fixed-length column '[DB2OLEDB].IDESC'.

The expected data length is 50, while the returned data length is 0.

OLE DB error trace [Non-interface error: Unexpected data length returned for the column: ProviderName='DB2OLEDB', TableName='[DB2OLEDB]', ColumnName='IDESC', ExpectedLength='50', ReturnedLength='0'].



Service pack information
To resolve this problem, obtain the latest service pack for Microsoft Host Integration Server 2000. For more information, click the following article number to view the article in the Microsoft Knowledge Base:

328152 How to obtain the latest service pack for Host Integration Server 2000

Hotfix 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 tool in Control Panel.

  Date         Time   Version    Size     File name 17-May-2004 22:51  5.0.0.983  311,568  Crtpkg.dll 17-May-2004 22:50  5.0.0.983  688,400  Db2oledb.dll 17-May-2004 22:51  5.0.0.983   53,552  Ddmstr.dll 17-May-2004 22:51  5.0.0.983   78,096  Mseidb2c.dll 17-May-2004 22:51  5.0.0.983  889,104  Mseidb2d.dll 17-May-2004 22:51  5.0.0.983   24,848  Mseidpm.dll 17-May-2004 22:51  5.0.0.983  266,512  Mseidrda.dll 17-May-2004 22:50  5.0.0.983  147,728  Mseidt.dll 17-May-2004 22:51  5.0.0.983   65,808  Crtpkg.exe 17-May-2004 22:51  5.0.0.983   82,192  Ddmserv.exe

Note Because of file dependencies, the most recent fix 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. This problem was corrected in Microsoft Host Integration Server 2000 Service Pack 2.

Additional query words: HIS2000 HIS

Keywords: kbbug kbfix kbqfe kbhotfixserver KB842650

-

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

© Microsoft Corporation. All rights reserved.