C
cj
The program I just finished allows users to pull a set of records from
sql server and edit them. It is meant to be a one user system but it
makes me start thinking. Suppose two users use the program at the same
time. Both get the same starting set of data. Both users change the
same records but not the same way and they both save. I assume the last
one to save is the way the record will end up in sql server. Suppose
that is not correct. What do we do to ensure the second user gets an
error that that record has changed since they loaded it? Is there
record locking etc available in VB? How do programmers deal with this
these days?
sql server and edit them. It is meant to be a one user system but it
makes me start thinking. Suppose two users use the program at the same
time. Both get the same starting set of data. Both users change the
same records but not the same way and they both save. I assume the last
one to save is the way the record will end up in sql server. Suppose
that is not correct. What do we do to ensure the second user gets an
error that that record has changed since they loaded it? Is there
record locking etc available in VB? How do programmers deal with this
these days?