Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a New User Defined Primary Key
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Creating a New User Defined Primary Key
Divers
Thread ID:
00420360
Message ID:
00420360
Vues:
39
In an Client-Server application where the customer insists on a specific Primary key (say ID C(10)), I wish to discuss the pros and cons of the following methods of inserting a new record.

(a) Check if the new primary key (Say ID = "JFK"), exists in the Backend table using INDEXSEEK or SELECT-SQL, then lock the WHOLE table while the INSERT is being performed.
(b) Try to insert the record without checking, trap and deal with any error returned ie "Duplicate Primary key"
(c) Any other suggestions?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform