The information in this article applies to:
SYMPTOMS
When you access data from a FoxPro 2.5 or 2.6 data source in Microsoft
Query or from a Microsoft Excel 5.0 Visual Basic for Applications macro,
the query may seem slow even if an index for the table is being used.
where <path> is the path to the .DBF file and <table name> is the name of the .DBF file being accessed. CAUSE
In Microsoft FoxPro 2.5 or 2.6, indexes are created as tag names that are
stored in a single .CDX file. The .CDX file has the same base name as the
database file (for example, ORDERS.CDX is the index file for the ORDERS.DBF
database). Microsoft FoxPro uses index files to ensure faster querying and
sorting of database tables.
RESOLUTIONTo resolve this error, make sure that an index file has been created for the .DBF file in question and that the index file is located in the same folder as the .DBF file. STATUSMicrosoft has confirmed this to be a problem in the versions of Microsoft Excel listed above. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION
The Q+E and Microsoft FoxPro Driver creates a file called QEDBF.INI. This
file contains information about the index files for each table and is
located in the same folder as the .DBF file.
SELECT * FROM ordersHowever, you can modify this statement as shown below to take advantage of using an index file: SELECT * FROM orders WHERE (order_id='10000')If the index file uses an index based on the ORDER_ID field, then you will see a marked improvement in the speed of the query. REFERENCESFor more information on FoxPro index files, search for "indexes" in the Q+E ODBC FoxPro Driver Help file located in the Microsoft folder. Additional query words: 5.0 long time
Keywords : kbinterop xlquery xlmac |
Last Reviewed: November 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |