MS Access, scripts clashing



Hello,

I have a script which writes to an Access 2002 database.

I'm using DBI over DBD::ADO with this connection string:
DBI:ADO:Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Engine Type=5;

I have two scripts that run at the same time, and both of them write to
the same Access database.

I'm constantly getting this error from the scripts:

Win32::OLE(0.16) error 0x80004005: "Unspecified error"
in METHOD/PROPERTYGET "Execute"

Description : Could not update; currently locked.
HelpContext : 5003218
HelpFile :
NativeError : -72156238
Number : -2147467259
Source : Microsoft JET Database Engine
SQLState : 3218
---------------------------------------------------------------
The error quits appearing when one of the scripts completes (Hence,
unlocking the database, I guess).

The only way that I can get two or more scripts to write the same DB is
to open/close the $dbh every time I write a record to the database.

This seems like a waste of resources, and seems like there should be a
solution.

Has anyone else had this problem? I've searched for DBI Access Locked,
etc. etc. and couldn't come up with anything.

Maybe I'm missing an Access-specific parameter that I should use in the
connect string?


Thanks,

--Nate

.



Relevant Pages

  • [NEWS] Granite Software ZMerge Administration Database Insecure Default ACLs
    ... the ZMerge administration database grants ... Note that while anonymous web users can read and modify all scripts, ... The ZMerge administration database contains the data import/export scripts ... server, allowing scripts to read and write arbitrary files on the server. ...
    (Securiteam)
  • I am available now
    ... Data Models, Data warehouse design, Data migration, Data population, ... Database consolidation, User Interface Prototypes, Database design, ... Oracle Workflow - Business Process Management Solution. ... To collect database and application related data, set of scripts have ...
    (misc.immigration.usa)
  • Network monitoring system
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.networking)
  • Network Monitoring System
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.misc)
  • Network Monitoring System
    ... Basically there are 3 programs and a database; ... a database loader on the receiving machine. ... The sender process on that machine is quietly waiting for data in the file ... generate a nice html page using simple php scripts. ...
    (comp.os.linux.development.apps)