R
Russell Read [MSFT]
Hi all,
I am using VB script in ASP to access a MS Access database. This works fine
until I want to access the same db placed on a file share.
The code I am using is...
'create connection object
Set db = Server.CreateObject("ADODB.Connection")
'specify the database provider
db.Provider = "Microsoft.Jet.OLEDB.4.0"
'declare the location of the database
db.ConnectionString = "Data Source=\\fileshare\directory\database.mdb"
I get an error to the effect...
[Microsoft][ODBC Microsoft Access Driver] 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.[Microsoft][ODBC
Microsoft Access Driver] 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.
I guess this is because the remote file share can't authenticate me as the
effective user of the page is anonymous.
Does anybody know how I would be able to get this to work?
N.B The users who are using the website will be logging onto the same domain
that the file share is on and the file share has the correct permissions set
for the users that need access.
-Cheers, Russell.
I am using VB script in ASP to access a MS Access database. This works fine
until I want to access the same db placed on a file share.
The code I am using is...
'create connection object
Set db = Server.CreateObject("ADODB.Connection")
'specify the database provider
db.Provider = "Microsoft.Jet.OLEDB.4.0"
'declare the location of the database
db.ConnectionString = "Data Source=\\fileshare\directory\database.mdb"
I get an error to the effect...
[Microsoft][ODBC Microsoft Access Driver] 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.[Microsoft][ODBC
Microsoft Access Driver] 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.
I guess this is because the remote file share can't authenticate me as the
effective user of the page is anonymous.
Does anybody know how I would be able to get this to work?
N.B The users who are using the website will be logging onto the same domain
that the file share is on and the file share has the correct permissions set
for the users that need access.
-Cheers, Russell.