FIX: Error message when you use the Microsoft OLE DB Provider for DB2 (DB2OLEDB) to connect to an IBM DB2 database that is running on a Linux-based server: "SQLSTATE: 42601, SQLCODE: -104" (919646)
The information in this article applies to:
- Microsoft Host Integration Server 2004
- Microsoft OLE DB Provider for DB2 1.0
SYMPTOMSConsider the following scenario. You use the Sample Query option in the Data Access Tool (DAT) to connect to an IBM DB2 database that is running on a Linux-based server. In this scenario, you receive an error message that resembles the following: Could not connect to data source Data Source Name:
One or more errors occurred during processing of command.
An unexpected token "WHERE =BEGIN-OF-STATEMENT<values>" was found following "". Expected tokens may include: "". SQLSTATE: 42601, SQLCODE: -104
An IBM DB2 database that is running on a Linux-based server may return one of the following server class strings during the Exchange Server Attributes negotiation: - QDB2/LINUX
- QDB2/LINUX390
- QDB2/LINUXIA64
- QDB2/LINUXPPC
- QDB2/LINUXPPC64
- QDB2/LINUXZ64
Note The server class string that the database returns depends on the Linux operating system on which the IBM DB2 database is running. You receive the error message because the Microsoft OLE DB Provider for DB2 (DB2OLEDB) does not recognize the server class strings. The OLE DB Provider for DB2 does not recognize the server class strings because the provider was not tested against the DB2 operating system environment. The OLE DB Provider for DB2 is not officially supported for use with IBM DB2 databases that are running on Linux-based servers. The OLE DB Provider for DB2 supports the following IBM DB2 operating system environments: - IBM DB2 V7 and later versions for z/OS to support an SNA LU 6.2 or TCP/IP network connection
- IBM DB2 for OS/400 V5R1, DB2 for i5/OS V5R3 and later versions to support an SNA LU 6.2 or TCP/IP network connection
- IBM DB2 for Universal Database V8.1 and later versions for Windows and AIX operating systems to support a TCP/IP network connection
The supported IBM DB2 operating system environments and features are listed in the Installation Guide.htm file that is included with Microsoft Host Integration Server 2004. STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
The third-party products that this article discusses are manufactured by companies that are independent of Microsoft. Microsoft makes no warranty, implied or otherwise, regarding the performance or reliability of these products.
Modification Type: | Minor | Last Reviewed: | 7/26/2006 |
---|
Keywords: | kbinfo kbHIS2004 kbDB2OLEDB kbfix kbQFE kbhotfixserver kbpubtypekc KB919646 kbAudDeveloper |
---|
|