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: OLE DB Provider for DB2 connection pooling feature does not work when an application connects to an IBM DB2 computer


View products that this article applies to.

Symptoms

When a consumer application uses OLE DB Provider for DB2 that is included in Microsoft Host Integration Server 2004 and in Microsoft Host Integration Server 2006 to connect to an IBM DB2 computer, the connection pooling feature that OLE DB Provider for DB2 implements does not work. This problem occurs when the following properties are configured in the connection string or in the Universal Data Link (UDL) file that the consumer application uses to connect to the DB2 computer:
  • Connection pooling=True
  • Client Application Name=<Custom Application Name>
Note This problem also occurs when you use Managed Provider for DB2.

↑ Back to the top


Cause

This problem occurs because the connection pooling feature does not work when you use a client application name that is not the default client application name.

↑ Back to the top


Resolution

Host Integration Server 2004

Service Pack information

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

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

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.
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Db2oledb.dll6.0.2072.0488,96014-Feb-200720:27x86
Db2oledb.hNot Applicable24,57914-Feb-200720:31Not Applicable
Ddmstr.dll6.0.2072.044,03214-Feb-200720:26x86
Drdaresync.exe6.0.2072.0337,40814-Feb-200720:27x86
Microsoft.hostintegration.dataaccesslibrary.dll6.0.2072.086,01614-Feb-200720:26x86
Microsoft.hostintegration.dataaccesstool.exe6.0.2072.02,703,36014-Feb-200720:27x86
Microsoft.hostintegration.msdb2client.dll6.0.2072.0114,68814-Feb-200720:26x86
Mseidb2c.dll6.0.2072.071,68014-Feb-200720:26x86
Mseidb2d.dll6.0.2072.0435,20014-Feb-200720:27x86
Mseidrda.dll6.0.2072.0696,32014-Feb-200720:27x86

Host Integration Server 2006

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

↑ Back to the top


Workaround

Microsoft OLE DB Provider for DB2 1.0 with Service Pack 1

A hotfix is currently not available for Microsoft OLE DB Provider for DB2 1.0 with Service Pack 1.

↑ Back to the top


Status

To work around this problem, remove the Client Application Name property from the connection string or from the UDL file that the consumer application uses to initialize the connection to the IBM DB2 computer.

↑ Back to the top


More information

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

↑ Back to the top


References

After you apply this update, the connection pooling feature functions as expected when the Client Application Name property is used to specify a nondefault client application name.

The Client Application Name property is an optional OLE DB data source initialization property. This property is used to specify a custom application name that the DB2 network client passes to the IBM DB2 computer when the connection is made. When you troubleshoot issues, you can use this value to help determine relevant portions within DB2 logs or system logs. The following lists describe the characteristics of the Client Application Name property when the property is used in different Microsoft programs.

Microsoft OLE DB Provider for DB2

  • Property Group: Initialization
  • Property Set: DBPROPSET_DBINIT
  • Property ID: DBPROP_DB2OLEDB_CLIENTAPPNAME
  • Property Description: Client Application Name
  • Initialization Keyword: ClientAppName
  • Default Value: MSEIDRDA
  • Data Links Dialog: All
  • Type: VT_BSTR
  • Max Length: 18
  • Invalid Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/
  • Invalid Starting Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/.0123456789
  • R/W: R/W
  • Required: No

Managed Provider for DB2

  • Class: MsDb2Connection
  • Property: ClientApplicationName
  • Default Value: MSEIDRDA
  • Type: String
  • Max Length: 18
  • Invalid Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/
  • Invalid Starting Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/.0123456789
  • R/W: R/W
  • Required: No

Microsoft Data Access Library

  • Class: IConnectionString
  • Property: ClientApplicationName
  • Default Value: MSEIDRDA
  • Type: String
  • Max Length: 18
  • Invalid Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/
  • Invalid Starting Characters: ~`!@#$%^&*()-+=[]{}:;"',<>?|\/.0123456789
  • R/W: R/W
  • Required: No

Microsoft ODBC Driver for DB2

The Client Application Name property is not supported with the ODBC Driver for DB2.

↑ Back to the top


Keywords: kbautohotfix, kbhotfixserver, kbqfe, kbpubtypekc, kbcode, kbfix, KB932770

↑ Back to the top

Article Info
Article ID : 932770
Revision : 2
Created on : 2/4/2010
Published on : 2/4/2010
Exists online : False
Views : 412