Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with Corrupted CDX file
Message
De
14/09/1999 11:57:37
 
 
À
14/09/1999 03:37:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00264340
Message ID:
00264523
Vues:
23
Hi David.

>I have a table with a corrupted CDX file. If I try to USE the table, it won't open because it needs the CDX file. Is there a way to open a table without its automatic CDX file, so I can reconstruct the indexes?

Is this a table in a database container? If so, you can delete the CDX, but should then do a VALIDATE DATABASE RECOVER (which you can only do from the Command window, not from within a program) to correct the DBC or you won't be able to open the table. Then, recreate the indexes using the Table Designer or a combination of ALTER TABLE (for the primary key) and INDEX ON (for all other indexes).

Note: if you need to do this at a client site, it'll be very difficult, since VALIDATE DATABASE RECOVER can't be used in a runtime environment. You might want to check out Stonefield Database Toolkit for a tool that can do this (and a lot of other things, like repairing corrupted table and memo headers and updating table structures) in a runtime environment.

Doug
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform