Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index problem!
Message
De
11/03/2002 08:00:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
11/03/2002 07:44:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00630882
Message ID:
00630884
Vues:
21
>Hi,
>I got a problem that, my index is not valid, but VFP doesn't return any error!!
>I found that, I have a record inserted into table. Once I use LOCATE FOR.. to search, it is not found. But I am sure it is there. So, I use SET ORDER TO myIndex to order my table. And, the record I mentioned is "dissapear". I try to reindex it, and LOCATE it again. Yes! It found already.
>
>Why does it happen?
>
>Thank you

In a case like this, I would have the strong suspicion that the index was corrupted. Rushmore Optimization automatically uses available indices to search for records, with commands like LOCATE. With LOCATE ... NOOPTIMIZE, you would probably have found the record.

The REINDEX command corrected the corrupt index.

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform