How To Fix Index Corruption at Run Time with Visual FoxPro (168762)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q168762 SUMMARY
When 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
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbDatabase kberrmsg kbhowto KB168762 |
---|
|