Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unique Record
Message
 
 
To
07/08/2006 15:02:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01143354
Message ID:
01143562
Views:
9
>>Not sure this would work in multi-user environment when two users try to create a new order in the same time.
>
>You have to provide the necessary table lock when getting the next order number to use. This lock is only applied for a very short time (was not included in the above code -- it was typed off the "top-of-my-head"). The retry for another user will then be able to lock the table and get the next one. I have used this concept in a database with over a thousand users without incident.

Yes, with the table locks this idea seems to work. Hopefully the originator of the thread picked it up <g>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform