Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReBuilding or Fixing Indexes - How?
Message
 
To
18/08/1999 23:01:17
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00255117
Message ID:
00255154
Views:
21
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform