How to Recover a Corrupted FoxPro for Macintosh .DBF FileLast reviewed: May 17, 1996Article ID: Q145670 |
The information in this article applies to:
SUMMARYError messages are sometimes displayed when trying to open a FoxPro for Macintosh .dbf file. These errors usually indicate that FoxPro has detected a problem in the header of the .dbf file and cannot open the file. This article discusses some alternatives to opening the corrupt .dbf file directly in FoxPro.
MORE INFORMATIONNote: The methods described here do not apply to index files (.CDX). If a table is indexed, these methods, if successful, will only recover the data in the .DBF file. The corresponding index file (.CDX) will not be recovered. In general, when you try to open a corrupt .dbf file, one of the following error messages appears:
Not a table/DBF Memo file is missing/invalidThere is no way within FoxPro to recover a corrupted database. Therefore, it will be necessary to try to open the .dbf using other Macintosh applications.
Method One: Attempt to Open the .DBF File by Using Microsoft Excel 5.0
Method Two: Attempt to Use Microsoft Word 6.0 to Open the .DBF File
Method Three: Look for Backup (.BAK) Files of the .DBF Files in FoxProUse File Find in the Macintosh Finder to check the hard disk for the existence of an old .dbf file name with a .bak extension. If one exists, then in FoxPro, choose Open from the File menu. Select Table/DBF in the Type list box, and select the All Files check box. Find the .bak file, and choose Open. The data in this table will probably be old, but it could be better than no data. Most other attempted recoveries are going to require a third-party utility to repair the database. Unfortunately, the majority of these utilities run only on IBM compatible PCs, so the corrupted .dbf file would have to be copied to a PC for the recovery process. For more information, please see the following articles in the Microsoft Knowledge Base:
ARTICLE-ID: Q87665 TITLE : Utilities to Repair Corrupt Memo Field Data ARTICLE-ID: Q87688 TITLE : "Not a Database File" Error Using a Database File |
Additional reference words: 2.50b 2.50c 2.60a FoxMac
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |