Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
To PACK, or not to PACK that is the question
Message
De
21/01/1997 05:08:42
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
To PACK, or not to PACK that is the question
Divers
Thread ID:
00017947
Message ID:
00017947
Vues:
113
whether 'tis nobler in the application
to suffer the slings and arrows of insufficient disk space...

----------------------------

PACK is not a good idea, we know this. I learned it early on when my application ran out of disk space during a PACK and lost the original and the copy tables - not a happy experience.

SO the normal action is to check for sufficient disk space, then COPY TO a temporary file FOR NOT DELETED(). Then to reindex that file. Finally rename your table and CDX to a backup name (just in case) and rename your copy back tp the original.

Lovely - but has anyone written a class or procdure to do this for a VFP table that is part of a database?

I'm starting out on this escapade and don't want to reinvent the wheel.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform