Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Massive lost of data after deleting records, why ?
Message
 
To
01/07/1999 12:15:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00234008
Message ID:
00236880
Views:
18
Hi Rob, thanks for responding; this is exactly what happened :
I had one table with around 250,000 records, let's say, in my case
"Traffic cases" and "Domestic cases". I copied the table to
a different location, with copy j:\data\*.* f:\data\ now I have two identical tables, table A and Table B, I deleted from table A the "Traffic cases" records
and from table b I deleted the "Domestic cases"; NO PACK USED; now I have one table with just "Traffic Cases" and another one with just "Domestic cases".
Fine right ?, well after 4 or 5 days the users started getting "Record is out of
range" when they were trying to find records using the SEEK command.
Well, at this point you know the index is corrupted, so I deleted all the
TAGS, created the indexes from scratch and them began my nightmare.
Users started calling because they could not find certain records. I looked into
into a child table of that one and guess what ?, I have around 10,000 orphan records, that means I lost 10,000 records somewhere, scary huh !!?

If you have read until here, you deserve a big THANKS, just for that.

>I noticed no one had responded, so here's my try...
>
>My guess has to do with the deleted records and the setting of DELETED = ON or OFF. If you had DELETED ON and used VFP to copy/move the data to 'different place' (ie: USE xxx/COPY TO yyy), only the non-deleted records would be copied into the new table/location. Wouldn't that be what was desired when deleting records? Or are you just trying to 'hide' them? Are you sure the index was really corrupted and if so, how did you establish that fact? What do you mean by 'lost 10,000 records' -- is the record count now 10,000 less, or was a 'COUNT' operation showing 10k less than expected?
>
>HTH
>
>Rob
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform