Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
INSERT INTO locking mecanism
Message
From
05/09/1997 10:49:04
 
 
To
05/09/1997 10:44:49
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00048697
Message ID:
00048701
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform