FIX: OLE DB Provider for DB2 may fail to format ISO string literals for a DB2 TIMESTAMP data type in a Host Integration Server environment

Article translations Article translations
Article ID: 979501 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

In a Microsoft Host Integration Server 2009 environment, you try to convert the TIMESTAMP data type from IBM DB2 to the DATETIME2 data type in Microsoft SQL Server. When you do this, you may receive error messages such as the following:
  • In SQL Server Integration Services, you may receive a DTS_E_INDUCEDTRANSFORMFAILUREONERROR error message.
  • In SQL Server Replication, you may receive an error message that resembles the following:
    THE DATE, TIME, OR TIMESTAMP VALUE *N IS INVALID (Source: MSSQL_REPL_DB2, Error number: -180)
This issue occurs only when a user is running IBM DB2 for z/OS V8 in compatibility mode and has bound an OLE DB DATETIME2 data type to a DB2 TIMESTAMP date type. In this case, the Microsoft OLE DB Provider for DB2 does not format the ISO string literals for the TIMESTAMP data type.

Note This issue occurs in all versions of Host Integration Server. However, this hotfix applies only to Host Integration Server 2009.

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

Prerequisites

You must have Host Integration Server 2009 installed to apply this hotfix.

Restart requirement

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

Hotfix replacement information

This hotfix does not replace other hotfixes.

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.
32-bit versions of Host Integration Server 2009
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
db2oledb.dll8.0.3755.2539,98425-Feb-201015:20x86
drdaresync.dll8.0.3755.2475,48025-Feb-201015:20x86
microsoft.hostintegration.adapters.msdb2.runtime.dll8.0.3755.279,78425-Feb-201015:20x86
microsoft.hostintegration.dataaccesslibrary.dll8.0.3755.21,279,89625-Feb-201015:20x86
microsoft.hostintegration.msdb2client.dll8.0.3755.2235,40825-Feb-201015:20x86
msdrda.dll8.0.3755.2874,32025-Feb-201015:20x86
snanls.dll8.0.3755.2109,39225-Feb-201015:20x86
64-bit versions of Host Integration Server 2009
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
db2oledb.dll8.0.3755.2763,21625-Feb-201015:23x64
drdaresync.dll8.0.3755.2669,52825-Feb-201015:23x64
microsoft.hostintegration.adapters.msdb2.runtime.dll8.0.3755.279,78425-Feb-201015:23x86
microsoft.hostintegration.dataaccesslibrary.dll8.0.3755.21,279,89625-Feb-201015:23x86
microsoft.hostintegration.msdb2client.dll8.0.3755.2235,40825-Feb-201015:23x86
msdrda.dll8.0.3755.21,507,15225-Feb-201015:23x64
snanls.dll8.0.3755.2128,33625-Feb-201015:23x64

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

The IBM DB2 TIMESTAMP data type is composed of a date and time portion that is separated by a period. The Microsoft OLE DB DBTYPE_TIMESTAMP data type is composed of a date and time portion that is separated by a space. The OLE DB DBTYPE_TIMESTAMP data type is similar to the industry-standard for ODBC and for JDBC. To provide better cross-platform compatibility, you can use a period or a space in a DB2 TIMESTAMP value. However, IBM indicates that the ODBC and JDBC TIMESTAMP format is only available when you run DB2 for z/OS V8 in New Function Mode (NFM).

For more information about Microsoft OLE DB Provider for DB2, visit the following Microsoft TechNet Web site:
OLE DB Provider for DB2
For more information about Microsoft SQL Server Integration Services, visit the following Microsoft Developer Network (MSDN) Web site:
SQL Server Integration Services
For more information about the DATETIME2 data type, visit the following MSDN Web site:
datetime2 (Transact-SQL)

Properties

Article ID: 979501 - Last Review: October 7, 2011 - Revision: 2.0
APPLIES TO
  • Microsoft Host Integration Server 2009
Keywords: 
kbautohotfix kbexpertiseinter kbsurveynew kbqfe KB979501

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com