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: The DELETE statement does not delete the matching rows in the IBM DB2 table when an SSIS package uses Microsoft OLE DB Provider for DB2


View products that this article applies to.

Symptoms

Consider the following scenario:
  • A Microsoft SQL Server 2005 Integration Services (SSIS) package uses Microsoft OLE DB Provider for DB2 to connect to an IBM DB2 database.
  • A DELETE statement is part of the SSIS package.
  • The DELETE statement contains a parameter that is defined as the CHAR data type.
In this scenario, the DELETE statement does not delete the matching rows in the IBM DB2 table when you run the DELETE statement.

For example, the following DELETE statement does not delete the matching rows in the IBM DB2 table when this statement is part of the SSIS package.
DELETE FROM DB2_Test.Table1 WHERE COLUMN_1 = ? AND COLUMN_2 = ?
Notes
  • In this statement, the COLUMN_1 parameter is defined as an INTEGER data type. The COLUMN_2 parameter is defined as a CHAR data type.
  • A DELETE statement successfully deletes the matching rows in the IBM DB2 table if the WHERE clause does not contain any parameters that are defined as the CHAR data type.
  • When this problem occurs, you do not receive an error message. The only result is that the expected rows of data are not deleted from the IBM DB2 table.

↑ Back to the top


Cause

The SSIS command transformation process does not bind the length of parameters that are defined as the CHAR data type. Instead, SSIS expects the data provider to derive the length of these parameters. However, OLE DB Provider for DB2 does not derive the length of these parameters. When these parameters are passed to IBM DB2, these parameters have NULL values. Therefore, no matching rows are identified when IBM DB2 processes the DELETE statement.

↑ Back to the top


Resolution

Microsoft OLE DB Provider for DB2 version 1.0

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. 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: 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.

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 (x86) version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Db2oledb.dll7.0.2544.0519,52025-Jan-200701:01x86
Microsoft.hostintegration.dataaccesslibrary.dll7.0.2544.02,557,35225-Jan-200701:01x86
Microsoft.hostintegration.dataaccesstool.exe7.0.2544.0619,93625-Jan-200701:01x86
Mseidrda.dll7.0.2544.0783,71225-Jan-200701:01x86
Snanls.dll7.0.2544.0107,86425-Jan-200701:01x86
64-bit (x64) version
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatformService branch
Db2oledb.dll7.0.2544.0761,18425-Jan-200701:03x64Not Applicable
Microsoft.hostintegration.dataaccesslibrary.dll7.0.2544.02,553,25625-Jan-200701:03x64Not Applicable
Microsoft.hostintegration.dataaccesstool.exe7.0.2544.0615,84025-Jan-200701:03x64Not Applicable
Mseidrda.dll7.0.2544.01,357,66425-Jan-200701:03x64Not Applicable
Snanls.dll7.0.2544.0131,41625-Jan-200701:03x64Not Applicable
Db2oledb.dll7.0.2544.0519,52025-Jan-200701:03x86SYSWOW
Mseidrda.dll7.0.2544.0783,71225-Jan-200701:03x86SYSWOW
Snanls.dll7.0.2544.0107,86425-Jan-200701:03x86SYSWOW
Note Because of file dependencies, the most recent hotfix that contains these files may also contain additional files.

Microsoft Host Integration Server 2006

A hotfix is currently not available for Host Integration Server 2006.

Microsoft Host Integration Server 2004

A hotfix is currently not available for Host Integration Server 2004.

↑ 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.

↑ Back to the top


More information

This hotfix updates OLE DB Provider for DB2 1.0. Therefore, OLE DB Provider for DB2 1.0 correctly derives the length of the parameters that are defined as the CHAR data type when they are included in an SQL statement that is part of an SSIS package.

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684� Description of the standard terminology that is used to describe Microsoft software updates
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, about the performance or reliability of these products.

↑ Back to the top


Keywords: KB930519, kbpubtypekc, kbqfe, kbhotfixserver, kbbug, kbfix, kbautohotfix

↑ Back to the top

Article Info
Article ID : 930519
Revision : 5
Created on : 12/4/2007
Published on : 12/4/2007
Exists online : False
Views : 391