ADO fails FSO works on a share

B

Brian

IIS 5.0 is running on a Win2K Server called serverA as a domain user.
The domain user has administrator rights on the server.

The database is on serverB(Win2K server). The IIS domain user also has
full rights to the share. The database is an Access97 database that
is part of another application. I made a copy of the database and did
a compact and repair on the copy. It opens fine with Access 97 and
has no security restrictions.

The short of it is I can write to and read from the directory using:

Set ScriptObject = Server.CreateObject("Scripting.FileSystemObject")
Set MyFile = ScriptObject.OpenTextFile("\\serverB\care\vcare4x\database\fc01\testfile.txt",
8,true)

So the base permissions should be OK.

I get the dreaded 80004005 Microsoft Jet database engine cannot open
the file '(unknown)'. when I try this code:

MdbFilePath = "\\serverB\CARE\VCARE4X\DATABASE\FC01\vc40clin_IIS.mdb"
Conn.Open "Driver={Microsoft Access Driver (*.mdb)}; DBQ=" &
MdbFilePath & ";"

When I put a copy of the database on the IIS server (not a permanent
option) the page works fine.

Why does the FSO work but not the ADO?
 
A

Aaron Bertrand - MVP

Confirm that it is ADO and not the database itself by creating a new
database and NOT compacting / repairing it, and try to access that...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top