Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReBuilding or Fixing Indexes - How?
Message
 
À
18/08/1999 23:01:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00255117
Message ID:
00255154
Vues:
22
>I got an error message when I tried to run a form during development. It said I needed to delete the CDX and recreate it for the file. Deleting, no problem, I can handle that... recreating, problem how?
>
>There were 5 indexes for various fields in the file. I ended up having to run VALIDATE DATABASES RECOVER (as prompted) and then had to manual put the indexes BACK in the database in the PROJECT. There has to be a better way.

What you could do is, once the DBC is back to normal, run GenDBC on the DBC. This will create a .prg that will rebuild the complete DBC from nothing. If your indexes get corrupted, all you have to do is extract the code from the prg for rebuilding the indexes on the affected tables. You'll find gendbc in HOME()+"\tools\gendbc\gendbc.prg".
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform