alwaysAnewbie
Programmer
First.... I tried this using UNC but no luck.
Second... I don't think this belongs in the ASP forum but please let me know if I am wrong.
I have IIS 5.0 running on serverA. The IIS user is a local user (IUSR_SERVA).
I have an Access 97 DB on serverB that I need to query using ASP . I have a local user on serverB called IUSR_SERVA. I set the permissions on serverB so that IUSR_SERVA has read and write permissions to the share and the mydb.mdb file on the share.
I created a virtual directory in IIS called DBs that points to \\serverB\application\DBdir using a domain user dbuser. I set the permissions on serverB so that dbuser has read and write permissions to the share and the mydb.mdb file on the share.
The result is I can browse the DBdir ( directory from my web browser (turned on browsing to test) but I can't open the database using ASP ( I get the error 80004005 The Microsoft Jet database engine cannot open the file '(unknown)' It is already opened exclusively by another user, or you need permission to view its data.
The ASP code is:
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection"
MdbFilePath = Server.MapPath("DBs\mydb.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
I know it is a permissions problem but I can't figure out what is wrong.
Second... I don't think this belongs in the ASP forum but please let me know if I am wrong.
I have IIS 5.0 running on serverA. The IIS user is a local user (IUSR_SERVA).
I have an Access 97 DB on serverB that I need to query using ASP . I have a local user on serverB called IUSR_SERVA. I set the permissions on serverB so that IUSR_SERVA has read and write permissions to the share and the mydb.mdb file on the share.
I created a virtual directory in IIS called DBs that points to \\serverB\application\DBdir using a domain user dbuser. I set the permissions on serverB so that dbuser has read and write permissions to the share and the mydb.mdb file on the share.
The result is I can browse the DBdir ( directory from my web browser (turned on browsing to test) but I can't open the database using ASP ( I get the error 80004005 The Microsoft Jet database engine cannot open the file '(unknown)' It is already opened exclusively by another user, or you need permission to view its data.
The ASP code is:
Dim Conn
Set Conn = Server.CreateObject("ADODB.Connection"
MdbFilePath = Server.MapPath("DBs\mydb.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" & MdbFilePath & ";"
I know it is a permissions problem but I can't figure out what is wrong.