Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pack command on shared tables
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00509101
Message ID:
00509105
Vues:
15
>How can I erase records if pack is no allowed in exclusive mode ?

I think you mean "pack is not allowed in shared mode".


You can't. You either have to kick everyone out prior to the pack so you can open the table exclusive, or devise some record recycling routine (blanking and re-using a deleted record instead of appending a new record.)

Packing shouldn't need to be done that often. Too many deleted records can effect performance, but there are few situation where it needs to be done daily -- and a situation like that might call for record recycling.

I usually build in a way to kick users out of the application from an administrative menu in case the system admin needs to pack or reindex. Some poeple also set a timer to perform packing, reindexing and other admin functions in the middle of the night when everyone is logged out.

HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform