T
Tony
Hi all,
I've got a database that, via a script called by a Windows scheduled task,
gets data from a Progress database on a nightly basis. In a nutshell, the
script opens the database, runs queries to repopulate tables, then cleans up
& closes. The process usually runs without any problems. However, from
time to time running one of the queries generates an error:
// Could not lock 'tblName'; currently in use by 'admin' on machine
'machineName'
When this happens, a lock file is left behind and I have to reboot the
machine to recover. The query is a make-table query, so it's deleting the
table then recreating it. At this point, I can't put my finger on why the
table shows that it's in use. The query usually takes ~ 10 minutes to run
and returns ~ 200,000 records from the source database. So, I have a few
questions:
1) Is there any way to get more information as to the table being in use,
such as the time admin accesses the table or the process (backup or anything
else) running as admin that is accessing the table?
2) Check to see if admin is accessing the table before running the query and
forcing admin to let go of it?
3) If instead of running a make-table query, I ran delete * from tableName
then an append query, would I avoid needing to lock the table?
I'm using Access 2003 running on a Windows Server 2003 machine.
TIA
I've got a database that, via a script called by a Windows scheduled task,
gets data from a Progress database on a nightly basis. In a nutshell, the
script opens the database, runs queries to repopulate tables, then cleans up
& closes. The process usually runs without any problems. However, from
time to time running one of the queries generates an error:
// Could not lock 'tblName'; currently in use by 'admin' on machine
'machineName'
When this happens, a lock file is left behind and I have to reboot the
machine to recover. The query is a make-table query, so it's deleting the
table then recreating it. At this point, I can't put my finger on why the
table shows that it's in use. The query usually takes ~ 10 minutes to run
and returns ~ 200,000 records from the source database. So, I have a few
questions:
1) Is there any way to get more information as to the table being in use,
such as the time admin accesses the table or the process (backup or anything
else) running as admin that is accessing the table?
2) Check to see if admin is accessing the table before running the query and
forcing admin to let go of it?
3) If instead of running a make-table query, I ran delete * from tableName
then an append query, would I avoid needing to lock the table?
I'm using Access 2003 running on a Windows Server 2003 machine.
TIA