K
k3
Hi,
I know that ADO.NET is using a disconnected method of handling data and use
of optimistic concurrency is encouraged. But in certain cases such as
modifying records in applications like customer support, medical records in
a hospital, and other similar scenarios we need to prevent other ppl from
being able to modify the record if it has been and currently is open by
another user. The 2nd or subsequent user may only view the record and has no
possibility to submit changes until the record has been closed by the
initial person who had access to it. So is there any way of making this
happen using ADO.NET and how can we detect that a row is locked if we plan
on sending a read-only warning to other user wishing to modify the opened
record?
This optimistic concurrency thing is mentioned in many text books and is
always geared towards handling situations where multiple ppl attempt to
commit changes... Isn't it just logical that in the situations mentioned
above to allow read-only access if a record is opened? I know it's not
scalable since the user that has the initial hold on the record can forget
to close the record for some long period of time, but can't we just
implement a timeout and release the record if some arbitrary amount of time
has elapsed without activity?
Regards,
Kam
I know that ADO.NET is using a disconnected method of handling data and use
of optimistic concurrency is encouraged. But in certain cases such as
modifying records in applications like customer support, medical records in
a hospital, and other similar scenarios we need to prevent other ppl from
being able to modify the record if it has been and currently is open by
another user. The 2nd or subsequent user may only view the record and has no
possibility to submit changes until the record has been closed by the
initial person who had access to it. So is there any way of making this
happen using ADO.NET and how can we detect that a row is locked if we plan
on sending a read-only warning to other user wishing to modify the opened
record?
This optimistic concurrency thing is mentioned in many text books and is
always geared towards handling situations where multiple ppl attempt to
commit changes... Isn't it just logical that in the situations mentioned
above to allow read-only access if a record is opened? I know it's not
scalable since the user that has the initial hold on the record can forget
to close the record for some long period of time, but can't we just
implement a timeout and release the record if some arbitrary amount of time
has elapsed without activity?
Regards,
Kam