R
rn5a
I am using the following connection to connect to a MS-Access
database:
---------------------------------
set con = server.createObject("adodb.connection")
path1 = server.mappath("./db/MyDB.mdb")
con.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& path1
&";Persist Security Info=False"
---------------------------------
In order to ensure that the admin can write/modify the database, I
have given the IUSR_MachineName Write & Modify permissions to the
Access database but when I do so, ASP generates the following error:
---------------------------------
Microsoft JET Database Engine error '80004005'
Could not use ''; file already in use.
/inc/connection.inc, line 16
---------------------------------
which points to the con.open line shown above.
What's causing this error & how do I resolve it?
Note that if I revoke the Write & Modify permissions, then the above
error doesn't get generated but when the admin tries to insert a new
record, then he is not allowed to do so & the following error gets
generated:
---------------------------------
Microsoft JET Database Engine error '80040e09'
Cannot update. Database or object is read-only.
/inc/global.asp, line 9
database:
---------------------------------
set con = server.createObject("adodb.connection")
path1 = server.mappath("./db/MyDB.mdb")
con.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="& path1
&";Persist Security Info=False"
---------------------------------
In order to ensure that the admin can write/modify the database, I
have given the IUSR_MachineName Write & Modify permissions to the
Access database but when I do so, ASP generates the following error:
---------------------------------
Microsoft JET Database Engine error '80004005'
Could not use ''; file already in use.
/inc/connection.inc, line 16
---------------------------------
which points to the con.open line shown above.
What's causing this error & how do I resolve it?
Note that if I revoke the Write & Modify permissions, then the above
error doesn't get generated but when the admin tries to insert a new
record, then he is not allowed to do so & the following error gets
generated:
---------------------------------
Microsoft JET Database Engine error '80040e09'
Cannot update. Database or object is read-only.
/inc/global.asp, line 9