Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Avoiding locking conflicts with SQL -INSERT
Message
From
19/03/2001 17:18:51
 
 
To
19/03/2001 17:03:55
Brent Smith
Guardian Life Insurance Company
Spokane, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00486550
Message ID:
00486654
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform