Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with deleting records
Message
De
10/03/2003 09:36:46
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
10/03/2003 09:33:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00763611
Message ID:
00763612
Vues:
14
>Hi all,
>
>I am having difficulties when deleting records permantenly
>from my table from within a running application. I have tried
>to SET DELETED ON, but that doesn't work. I have also tried
>the PACK command, but unfortunately the table must be SET
>EXCLUSIVE ON, and I need it to SET EXCLUSIVE OFF, therefore
>I can't really use the PACK command.

Just do the PACK once a month at midnight, when nobody is using the tables.

>You see, I have two composite fields as my one PUBLIC KEY, so if I delete
>a record, I want it to be reusable straight away in case a user wants to add
>a new record, but this cannot be accomplished if the deleted record
>is not permanenly removed from the table in question.

Filtering the index on NOT DELETED() will solve the uniqueness violation.

>Is there another way to permanently delete/remove records from a table?

Yes, you can re-use deleted records. But that is too much trouble, IMNSHO.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform