OLE DB Provider/ODBC Driver for DB2 May Break Access/Jet Applications (244262)
The information in this article applies to:
- Microsoft SNA Server 4.0 SP2
- Microsoft SNA Server 4.0 SP3
- Microsoft ODBC Driver for DB2 4.0 SP3
- Microsoft OLE DB Provider for DB2 4.0 SP3
This article was previously published under Q244262 SYMPTOMS
Some DB2 platforms (listed in the "More Information" section of this article) do not allow sorting by a column that is not part of the Select list. For example, the following query fails with a DB2 specific -208 error:
SELECT COL1 FROM TABLE ORDER BY COL2
The Microsoft OLE DB Provider for DB2 incorrectly returns VARIANT_FALSE for the property DBPROP_ORDERBYCOLUMNSINSELECT, and the Microsoft ODBC Driver for DB2 incorrectly returns "N" on the SQLGetInfo(SQL_ORDER_BY_COLUMNS_IN_SELECT) call.
The above response from the provider or driver causes the Microsoft Jet database engine to assume that DB2 does not require the order by columns to be part of the Select list, and consequently, the Jet database engine generates a query that is rejected by the DB2, which breaks the application with the provider and the driver returning the following error message:
A SQL error has occurred. Please consult the documentation for your specific DB2 version for a description of the associated Native Error and SQL State. SQLSTATE:42707, SQLCODE: -208
RESOLUTIONTo resolve this problem, obtain the latest service pack for SNA Server 4.0. For additional information, click the following article number to view the article in the
Microsoft Knowledge Base:
215838 How to Obtain the Latest SNA Server Version 4.0 Service Pack
STATUSMicrosoft has confirmed that this is a problem in Microsoft SNA Server version 4.0 Service Pack 2 and Service Pack 3.
This problem was first corrected in SNA Server 4.0 Service Pack 4.
Modification Type: | Minor | Last Reviewed: | 2/12/2004 |
---|
Keywords: | kbbug kbfix kbQFE kbSNA400PreSP4fix kbSNA400sp4fix KB244262 |
---|
|