S
Siegfried Heintze
I have a couple of perl programs that update an MS Access Database every
hour. The seem to coexist fine using the perl ODBC interface to INSERT,
UPDATE and SELECT.
I display the contents of the database (with limited editing capabilities)
using ADO.NET in an ASP.NET application (v1.1)
Here is my code:
string strConn = new string @"Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase Locking Mode=1;Jet
OLEDBatabase Password=;Data
Source=""C:\Inetpub\heintze\keyword-job-search\job-search.mdb;Password=;Jet
OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet
OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False";
OleDbDataAdapter oCMD = new OleDbDataAdapter("SELECT
* FROM ...", strConn);
DataSet oDS = new DataSet();
oCMD.Fill(oDS, "MyList");
The above code only works if the perl programs are not running. Is there a
way to make this work? I always get the same error: 'could not lock file'.
Thanks,
Siegfried
hour. The seem to coexist fine using the perl ODBC interface to INSERT,
UPDATE and SELECT.
I display the contents of the database (with limited editing capabilities)
using ADO.NET in an ASP.NET application (v1.1)
Here is my code:
string strConn = new string @"Jet OLEDB:Global Partial Bulk
Ops=2;Jet OLEDB:Registry Path=;Jet OLEDBatabase Locking Mode=1;Jet
OLEDBatabase Password=;Data
Source=""C:\Inetpub\heintze\keyword-job-search\job-search.mdb;Password=;Jet
OLEDB:Engine Type=5;Jet OLEDB:Global Bulk
Transactions=1;Provider=""Microsoft.Jet.OLEDB.4.0"";Jet OLEDB:System
database=;Jet OLEDB:SFP=False;Extended Properties=;Mode=Share Deny None;Jet
OLEDB:New Database Password=;Jet OLEDB:Create System Database=False;Jet
OLEDBon't Copy Locale on Compact=False;Jet OLEDB:Compact Without Replica
Repair=False;User ID=Admin;Jet OLEDB:Encrypt Database=False";
OleDbDataAdapter oCMD = new OleDbDataAdapter("SELECT
* FROM ...", strConn);
DataSet oDS = new DataSet();
oCMD.Fill(oDS, "MyList");
The above code only works if the perl programs are not running. Is there a
way to make this work? I always get the same error: 'could not lock file'.
Thanks,
Siegfried