BUG: SQLStatistics Always Reports Indexes as AscendingLast reviewed: September 9, 1996Article ID: Q132236 |
The information in this article applies to:
BUG# QJet: 2274 (2.00.2317)
SYMPTOMSThe SQLStatistics function always returns the type of an index as ascending even if it is created as a descending index.
STATUSMicrosoft has confirmed this to be a problem in 16-bit and 32-bit ODBC version 2.0 Access, FoxPro, and dBase drivers. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONYou can specify an index either as ascending or descending using the ODBC SQL grammar. The syntax is:
CREATE [UNIQUE] INDEX index-name ON base-table-name (column-identifier [ASC | DESC] [,column-identifier [ASC | DESC]...)SQLStatistics is an ODBC API function that retrieves a list of statistics about a single table and the indexes associated with the table. It returns the information as a result set whose seventh column is the index type. It returns "A" for ascending and "D" for descending index types. However, the dBase, Access, and FoxPro drivers return "A" for the index type when the index is created as descending.
|
Additional reference words: 2.00 2.00.2317 desktop drivers
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |