HOWTO: Fixing Index Corruption at Run Time with Visual FoxProLast reviewed: May 22, 1997Article ID: Q168762 |
The information in this article applies to:
SUMMARYWhen index corruption happens at run time under the Foxpro 2.0, 2.5, or 2.6 platforms, you can easily erase the IDX/CDX files and re-create them. But under the Visual FoxPro environment, once the table is bound to a database and it has Primary index, you cannot erase the CDX file because it generates "Primary key property is invalid, please validate database" error when you try to open the table again in the database. Re-creating the index on an erased CDX file that only has regular, candidate or unique index generates the following error:
Invalid database - please validate database MORE INFORMATIONOne option for re-creating corrupt indexes is to use GenDBC.prg to re- create your Database structure and indexes, and then restore the data back to each table. Another option is to use the following steps to restore your corrupted index files:
|
Keywords : FxprgTable kberrmsg vfoxwin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |