Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's the best way to detect Data/Index Corruption?
Message
From
24/08/1999 08:47:31
 
 
To
23/08/1999 17:51:16
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00256419
Message ID:
00256996
Views:
22
>
>Craig, in DataFlex I wrote a routine that would run through the file serially with no index in place counting the records. Then I would run through again with each index active counting again. Then compare the counts. This seamed to help disclose a busted index. What do you think about this method?
>
>It would probably be necessary to distinguish between Rushmore aided counts (SET OPTIMIZE ON) and plain counts (SET OPTIMIZE OFF).
>
>I had a case the other night where I was looking for records with a particular date-time. With Rushmore on I asked:
>
>COUNT FOR tStart = ltStart
>
>I would get a small number. But if I turned Rushmore off I would get a much bigger number.
>
>I deleted all of the indexes (DELETE TAG ALL) and recreated them. Same problem. Then I made a copy of the table, ZAPped it, and reAPPENDed all of the records. Problem solved!
>
>
>Peter Robinson

That would be one way to check for corruption, but still does not guarantee that corruption will be detected.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform