Haven't been able to search (Hope it gets fixed soon) this site for a few days so thought I would post a question. What is the best way to update hundreds or possibly thousands of records in a multi-user situation where various users may have records locked? In the past I haven't had to worry about this too much because of a small number of users or just a few records to update. An example would be to change the status of some of the records from "open" to "audited". At least 3 options are:
(1) Flock and replace where the file lock may be hard to acquire.
(2) Update-Sql where I would have to deal with record lock failure through on error.
(3) buffered record/table and scan through the records one at a time.
Any suggestions on the best method of handling this will be appreciated.
On a technical note, here is my stupid question(s) (of the day) that I thought I knew the answer to until I started thinking about it some more. Does a tableupdate command only update the fields that have been changed, or does it replace all of the fields in the table? Does it generate an error if any field was updated by another user, or only if it was the same field the current user tried to update?
Auguy
Sylvania, Ohio
(1) Flock and replace where the file lock may be hard to acquire.
(2) Update-Sql where I would have to deal with record lock failure through on error.
(3) buffered record/table and scan through the records one at a time.
Any suggestions on the best method of handling this will be appreciated.
On a technical note, here is my stupid question(s) (of the day) that I thought I knew the answer to until I started thinking about it some more. Does a tableupdate command only update the fields that have been changed, or does it replace all of the fields in the table? Does it generate an error if any field was updated by another user, or only if it was the same field the current user tried to update?
Auguy
Sylvania, Ohio