The information in this article applies to:
SUMMARY
The best way to ensure that you will be able to recover corrupt DBC files
is to use proactive measures, such as frequently backing up the Database
files (both the .DBC and .DCT files). The next best method is to use the
GENDBC.PRG tool located in the VFP\TOOLS\GENDBC subdirectory.
MORE INFORMATION
When GENDBC.PRG is run, it creates a "generation" program file for the
current Database container. If no Database is open it will prompt for one.
When GENDBC.PRG is finished, a program file with the same name as the
database will be created in the current directory. This program can then be
executed to recreate damaged Database (.DBC) files. For instance, in the
example above, a program named "GD_MYDBC.PRG" would be created.
If the Database (.DBC) file is corrupt or damaged at the table level (in other words, the .DBC is a FoxPro Table (.DBF)) and it is not usable as a FoxPro table, GENDBC will not correct the matter. The error generated in this case is: If this is the case, a third-party database repair utility will be required to repair the DBC at the table level. However, once the file is corrected in this manner, there is still no guarantee that the .DBC file will be recoverable with GENDBC.PRG. Thus the importance of using GENDBC.PRG prior to using the Database or immediately following any changes to the Database Container. For additional information on repairing a corrupt database, please see the following article in the Microsoft Knowledge Base: Q129400 Free Table Command Removes Table From Corrupted Database Additional query words: VFoxWin remove free damage corrupted
Keywords : FxprgTable |
Last Reviewed: August 12, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |