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.

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


View products that this article applies to.

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'].

↑ Back to the top


Resolution

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.

↑ Back to the top


Status

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. This problem was corrected in Microsoft Host Integration Server 2000 Service Pack 2.

↑ Back to the top


Keywords: KB842650, kbhotfixserver, kbqfe, kbfix, kbbug

↑ Back to the top

Article Info
Article ID : 842650
Revision : 3
Created on : 6/5/2006
Published on : 6/5/2006
Exists online : False
Views : 394