Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
INSERT INTO locking mecanism
Message
De
05/09/1997 10:49:04
 
 
À
05/09/1997 10:44:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00048697
Message ID:
00048701
Vues:
21
>I've read a past thread about the way the locking is occuring based on APPEND BLANK, INSERT SQL, etc. There was a mention that INSERT SQL is better to use.
>
>I use INSERT SQL a lot, for robot applications - not for desktop applications, and have found that sometimes, collisions occur. So, at the same time, the same INSERT SQL is executed by 2 applications. The 2nd one will have "File is in use by another user". What will be the best way to handle this so we can make sure that each application will process this locking in a queue?

I have never seen this before, but I guess the first thing you have to do is to check SET REPROCESS setting (should be AUTOMATIC). If you still will see the problem, you can proceed by old RLOCK() way (have separate Locker table with particular record locked when a user try to perform specific operation).
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform