General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Hi Calvin
Like Doug said elsewhere today, you need to use repair, not reindex.
I have tested the failure scenario extensively, and found that once the header is off, no further records are added. Checked this with hexedit. Nor does the last record change ( the record which reflects a correct header count ). It is recovered when the header is corrected.
However, though I did the testing by setting the header off by one, and restoring it, I have seen instances where the problem arises from a short record at the end. In at least one case, the header count seemed to be 'correct' but the checking calculation doesn't handle it. SDT repair fixed the file, but probably dropped that last record.
Geoff
>While testing this I found a problem with SDT - if you run reindex with the pack flag set to .t. and there is a problem with the reccount in the file header any excess records will be permanently lost.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only