formerTexan
Programmer
Hello folks,
Am working with A2K and ADO 2.5 version in a FE/BE multiuser setting. I was somewhat mortified to discover that setting an ADO recordset's lock type to Pessimistic simply defaults to BatchOptimistic. This apparently holds for both server and client side connections. So i have several related questions.
1. Am I correct in thinking that the default connection is Server-side, rather than Client-side?
2. With Batch Optimistic locking, is the default connection still Server side?
3. Must I always use the batch update method with "Pessimistic" or Batch Optimistic locking?
4. With Batch Optimistic locking, at what point is the record locked and then unlocked? I am guessing not until the Batch Update method is called.
SO pessimistic locking is offered, but apparently not actually provided. Therefore, how do I reliably give a user exclusive use of a BE table or record while retrieving and updating a record (in this case updating a invoice number counter).
Thanks in advance,
Bill
Am working with A2K and ADO 2.5 version in a FE/BE multiuser setting. I was somewhat mortified to discover that setting an ADO recordset's lock type to Pessimistic simply defaults to BatchOptimistic. This apparently holds for both server and client side connections. So i have several related questions.
1. Am I correct in thinking that the default connection is Server-side, rather than Client-side?
2. With Batch Optimistic locking, is the default connection still Server side?
3. Must I always use the batch update method with "Pessimistic" or Batch Optimistic locking?
4. With Batch Optimistic locking, at what point is the record locked and then unlocked? I am guessing not until the Batch Update method is called.
SO pessimistic locking is offered, but apparently not actually provided. Therefore, how do I reliably give a user exclusive use of a BE table or record while retrieving and updating a record (in this case updating a invoice number counter).
Thanks in advance,
Bill