Hello,
I am using asp and SQL Server 2000 and have a question concerning locking records. Let me explain:
There are 26 orders showing and users click to get the next order so they can process it. What happens when two users click at the same time, I need one user to get order 26 and the other user to get order 25. I need this to continue for all users clicking to get orders.
I would like to know the best way to go about doing this. If I use a pessimistic lock or assign a field in the database that says the order has been taken.
Any suggestions would be appreciated.
Thanks,
I am using asp and SQL Server 2000 and have a question concerning locking records. Let me explain:
There are 26 orders showing and users click to get the next order so they can process it. What happens when two users click at the same time, I need one user to get order 26 and the other user to get order 25. I need this to continue for all users clicking to get orders.
I would like to know the best way to go about doing this. If I use a pessimistic lock or assign a field in the database that says the order has been taken.
Any suggestions would be appreciated.
Thanks,