Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding locking conflicts with SQL -INSERT
Message
De
19/03/2001 17:18:51
 
 
À
19/03/2001 17:03:55
Brent Smith
Guardian Life Insurance Company
Spokane, Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00486550
Message ID:
00486654
Vues:
10
>I don't use an FLOCK() in my usual method, rather I use an RLOCK() on the keys table to assure that only one user is adding at one time. I can't use RLOCK() for an INSERT, but it occurs to me that an implicit FLOCK must be placed on the target table to append a record. Too simple for a sharp guy like me <g>.

Actually, according to the docs, INSERT - SQL only requires a table header lock, not an FLOCK(). To get this you can issue RLOCK(0) on the table.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform