Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

Status
Not open for further replies.

eljacobs

Programmer
Oct 13, 2003
47
GB
Hi there

i've got a problem that just won't go away!!

I've created a simple site linked to an access database. It works fine on my machine (when i can get iis to work properly but that's a different matter!) but when i upload it to the host's server i get this message:

Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Microsoft Access Driver] '(unknown)' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.

/index.asp, line 8

I've changed the path to the database so that it references the databse on the server.

Any ideas?

Any advice is much appreciated.

Regards

Elliot
 
Have you double and triple checked that the path is correct? Also you will need to assign write permission to the database and its folder for the IUSR account.

Tony
reddot.gif width=500 height=2 vspace=3

 
FesterSXS is right. And if you placed your MDB file in the same folder where your ASP file resides, you may try modifying your connection string to make it look something like this:
Code:
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
          "Data Source=" & server.mappath(".") & "\MyDB.mdb;"
(assuming the name of your database is MyDB.mdb)
 
Hmmm...I got used to "folder only" databases. A more simple code should be:
Code:
ConnStr = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
          "Data Source=" & server.mappath("MyDB.mdb")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top