R
robert d via AccessMonster.com
I've been developing my application using almost exclusively unbound forms.
I haven't really given much thought to potential write after write conflicts
for a couple of reasons:
1) Most of the users of the app have no permissions to add or update data to
the central database. There is a temporary database that is created for each
user, and all users add and delete data to the tables in the temporary
database. But there wouldn't be write conflicts there because that temp dB
is created for each logged on user.
2) Changes in the data stored in the main tables occur typically once or
twice a month, and the number of people who can make these changes is
relatively small; less than 5.
Still I now suspect that my app could have write after write conflicts
against the main tables on the server because of the almost exclusive use of
unbound forms.
My explanation of write-after-write conflicts is as follows:
1) User 1 and 2 retrieve the same record
2) User 1 makes a change to the data and saves it. User 2's record as
displayed on the form is now out of synch with the data in the table on the
server.
3) User 2 makes a change to his version of the data and attempts to save the
change.
If I understand this scenario correctly, User 2 will overwrite the changes
made by User 1 and will not have known that User 1 made changes.
Finally, this issue only surfaces with editing records and not adding records.
I guess with adding records there is no conflict. If User 2 tries to add a
record, after User 1 has added a record, and the User 2 record just happens
to have the same primary key as User 1's addition, then a primary key error
should appear. Am I correct in this assumption?
Am I correct in my assessment of potential write after write problems with my
unbound application.
I haven't really given much thought to potential write after write conflicts
for a couple of reasons:
1) Most of the users of the app have no permissions to add or update data to
the central database. There is a temporary database that is created for each
user, and all users add and delete data to the tables in the temporary
database. But there wouldn't be write conflicts there because that temp dB
is created for each logged on user.
2) Changes in the data stored in the main tables occur typically once or
twice a month, and the number of people who can make these changes is
relatively small; less than 5.
Still I now suspect that my app could have write after write conflicts
against the main tables on the server because of the almost exclusive use of
unbound forms.
My explanation of write-after-write conflicts is as follows:
1) User 1 and 2 retrieve the same record
2) User 1 makes a change to the data and saves it. User 2's record as
displayed on the form is now out of synch with the data in the table on the
server.
3) User 2 makes a change to his version of the data and attempts to save the
change.
If I understand this scenario correctly, User 2 will overwrite the changes
made by User 1 and will not have known that User 1 made changes.
Finally, this issue only surfaces with editing records and not adding records.
I guess with adding records there is no conflict. If User 2 tries to add a
record, after User 1 has added a record, and the User 2 record just happens
to have the same primary key as User 1's addition, then a primary key error
should appear. Am I correct in this assumption?
Am I correct in my assessment of potential write after write problems with my
unbound application.