FIX: "Returned data that does not match expected data length" error when IBM DB2 tables are queried by Microsoft OLE DB Provider for DB2 3.0


View products that this article applies to.

Symptoms

Consider the following scenario:

  • You use Microsoft OLE DB Provider for DB2 3.0 with a Microsoft SQL Server linked server to query IBM DB2 tables.

  • Update 2681358 is applied to Microsoft OLE DB Provider for DB2 3.0.

  • The IBM DB2 tables contain columns that use the DB2 GRAPHIC data type.


In this scenario, you receive an error message that resembles the following:

Msg 7347, Level 16, State 1, Line 1
OLE DB provider 'DB2OLEDB' for linked server 'linked_server_name' returned data that does not match expected data length for column 'column_name'. The (maximum) expected data length is xx, while the returned data length is yy.


Resolution

Hotfix information

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 the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

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, contact 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 website:

http://support.microsoft.com/contactus/?ws=supportNote 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.

Prerequisites

There are no prerequisites to apply this hotfix.

Restart information

You may have to restart the computer after you apply this hotfix.

Replacement information

This hotfix does not replace any previously released hotfix.

File 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 item in Control Panel.

File name

File version

File size

Date

Time

Platform

Db2oledb.dll

8.0.4328.2

633,088

18-Mar-2013

19:35

x86

Dbgtrace.dll

8.0.4328.2

47,360

18-Mar-2013

19:35

x86

Ddmstr.dll

8.0.4328.2

67,832

18-Mar-2013

19:35

x86

Microsoft.hostintegration.dataaccesslibrary.dll

8.0.4328.2

788,808

18-Mar-2013

19:35

x86

Msdrda.dll

8.0.4328.2

903,416

18-Mar-2013

19:35

x86

Trnsbidi.dll

8.0.4328.2

76,032

18-Mar-2013

19:35

x86


File name

File version

File size

Date

Time

Platform

Db2oledb.dll

8.0.4328.2

633,088

18-Mar-2013

19:35

x86

Dbgtrace.dll

8.0.4328.2

47,360

18-Mar-2013

19:35

x86

Ddmstr.dll

8.0.4328.2

67,832

18-Mar-2013

19:35

x86

Microsoft.hostintegration.dataaccesslibrary.dll

8.0.4328.2

788,808

18-Mar-2013

19:35

x86

Msdrda.dll

8.0.4328.2

903,416

18-Mar-2013

19:35

x86

Trnsbidi.dll

8.0.4328.2

76,032

18-Mar-2013

19:35

x86

Db2oledb.dll

8.0.4328.2

883,456

18-Mar-2013

19:38

x64

Dbgtrace.dll

8.0.4328.2

61,696

18-Mar-2013

19:38

x64

Ddmstr.dll

8.0.4328.2

55,544

18-Mar-2013

19:38

x64

Microsoft.hostintegration.dataaccesslibrary.dll

8.0.4328.2

788,808

18-Mar-2013

19:38

x86

Msdrda.dll

8.0.4328.2

1,556,728

18-Mar-2013

19:38

x64

Trnsbidi.dll

8.0.4328.2

67,840

18-Mar-2013

19:38

x64


File name

File version

File size

Date

Time

Platform

Db2oledb.dll

8.0.4328.2

633,088

18-Mar-2013

19:35

x86

Dbgtrace.dll

8.0.4328.2

47,360

18-Mar-2013

19:35

x86

Ddmstr.dll

8.0.4328.2

67,832

18-Mar-2013

19:35

x86

Microsoft.hostintegration.dataaccesslibrary.dll

8.0.4328.2

788,808

18-Mar-2013

19:35

x86

Msdrda.dll

8.0.4328.2

903,416

18-Mar-2013

19:35

x86

Trnsbidi.dll

8.0.4328.2

76,032

18-Mar-2013

19:35

x86

Db2oledb.dll

8.0.4328.2

1,725,184

18-Mar-2013

19:42

IA-64

Dbgtrace.dll

8.0.4328.2

106,752

18-Mar-2013

19:42

IA-64

Ddmstr.dll

8.0.4328.2

61,176

18-Mar-2013

19:42

IA-64

Microsoft.hostintegration.dataaccesslibrary.dll

8.0.4328.2

788,808

18-Mar-2013

19:42

x86

Msdrda.dll

8.0.4328.2

2,445,560

18-Mar-2013

19:42

IA-64

Trnsbidi.dll

8.0.4328.2

133,888

18-Mar-2013

19:42

IA-64


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 "Applies to" section.


Applies toThis article applies to the following:

  • Microsoft OLE DB Provider for DB2 3.0

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

Thank you for your feedback!

Thank you for your feedback! It sounds like it might be helpful to connect you to one of our Office support agents.

×