Debbie
2005-02-01 16:02:21 UTC
Can someone please tell me what would happen in the following situation in a
multi-user environment:
User1 is viewing/editing a record in a table called "orders" and has locked
the record.
At the same time, User2 runs a form and calls a method which has the
following piece of code in it:
SELECT 0
USE orders SHARED
COPY TO (lctemp) FOR orders.ddateplaced = DATE()
The record that User1 has locked falls into the above COPY TO criteria.
My clients are periodically getting a "File is in use" error when they run
the form in question. Would I still get the error message if I changed the
code to use a SELECT-SQL statement? If I would, then can anyone advise me
of the best way to gather records from a table which is heavily used
throughout the day and frequently being edited/viewed/locked.
Thanks - Debbie
multi-user environment:
User1 is viewing/editing a record in a table called "orders" and has locked
the record.
At the same time, User2 runs a form and calls a method which has the
following piece of code in it:
SELECT 0
USE orders SHARED
COPY TO (lctemp) FOR orders.ddateplaced = DATE()
The record that User1 has locked falls into the above COPY TO criteria.
My clients are periodically getting a "File is in use" error when they run
the form in question. Would I still get the error message if I changed the
code to use a SELECT-SQL statement? If I would, then can anyone advise me
of the best way to gather records from a table which is heavily used
throughout the day and frequently being edited/viewed/locked.
Thanks - Debbie