F
Ferdinand Zaubzer
I would like to use pissimistic locking for changing data on a database.
(Yes, I know what I'm doing, it will scale poorly!)
I tried it using a transaction with Isolationlevel "serializable".
I set the select, insert, update and delete command of the DataAdapter
to use this transaction.
If I open a Row for editing, any other client trying to change the same
row is blocked. But it is still possible to read the row which is locked
for editing.
So I have the following questions:
-Is there any possibility to prevent other clients to read the locked
data which is being updated?
if not:
-Is it possible to tell another client that this row is locked and
therfore cannot be updated instead of simply blocking the update operation?
-How can I know that the row cannot be updated when I populate the form
with the data read from the locked row.
Cheers
Ferdinand
(Yes, I know what I'm doing, it will scale poorly!)
I tried it using a transaction with Isolationlevel "serializable".
I set the select, insert, update and delete command of the DataAdapter
to use this transaction.
If I open a Row for editing, any other client trying to change the same
row is blocked. But it is still possible to read the row which is locked
for editing.
So I have the following questions:
-Is there any possibility to prevent other clients to read the locked
data which is being updated?
if not:
-Is it possible to tell another client that this row is locked and
therfore cannot be updated instead of simply blocking the update operation?
-How can I know that the row cannot be updated when I populate the form
with the data read from the locked row.
Cheers
Ferdinand