The information in this article applies to:
SYMPTOMSSome 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 COL2The 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:
RESOLUTIONA supported fix that corrects this problem is now available from Microsoft, but
it has not been fully regression tested and should be applied only to systems
experiencing this specific problem. If you are not severely affected by this
specific problem, Microsoft recommends that you wait for the next Microsoft SNA Server version 4.0 service pack
that contains this fix. http://www.microsoft.com/support/supportnet/overview/overview.aspThe English version of this fix should have the following file attributes or later:
NOTE: Date and time information will be provided as soon as it becomes available. NOTE: Because of file dependencies, the most recent fix that contains the above files may also contain additional files. STATUSMicrosoft has confirmed this to be a problem in Microsoft SNA Server version 4.0 Service Pack 2 and Service Pack 3. MORE INFORMATIONThe following platforms have been tested and found to have the requirement for order by columns to be part of the select list: Note: The only supported platform that was not tested for this requirement was DB2 for OS/390 V6R1. For the following platforms, this is not a requirement; therefore, they are not affected by this problem: Note: There may be other platforms or versions of DB2 that are either affected or not affected by this problem. This may be found by running a query against them. When this fix is applied, the provider or driver returns the correct information to Jet, which then generates a query that's acceptable to DB2. If the error still persists after applying this fix, it could be due to a bug with the Jet engine (fixed in the Jet3.5 SP3 update). For additional information, click the article number below to view the article in the Microsoft Knowledge Base: Q235960 ACC97: ORDER BY Clause Is Not Valid... Error with Linked Table Additional query words: DB2OLEDB MSDB2OLE Mainframe AS/400 DB2/MVS DB2/400 DB2/NT DB2/6000
Keywords : |
Last Reviewed: November 4, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |