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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access db connection works on ws but not server 1

Status
Not open for further replies.

EchoAlertcom

IS-IT--Management
Oct 8, 2002
239
0
0
US
Can anyone help with this please?

I am having trouble connecting to a db on our server. It works when I put the .asp page and db on my workstation.

I have checked NTFS Permissions, IIS Permissions, I have tried in different directories, I have tried using a DSN nothing works. Any suggestions?

The error is:
Code:
Microsoft JET Database Engine error '80004005' 
Unspecified error 
/wap/test5.asp, line 5


Code:
<html><head></head><body>
<%
set conn=Server.CreateObject(&quot;ADODB.Connection&quot;)
conn.Provider=&quot;Microsoft.Jet.OLEDB.4.0&quot;
conn.Open &quot;d:\web\wap\waptest.asp&quot;

set rs=Server.CreateObject(&quot;ADODB.recordset&quot;)
rs.Open &quot;Select * from TestTable&quot;, conn

for each x in rs.fields
   response.write(x.name)
   response.write(&quot; = &quot;)
   response.write(x.value) & &quot;<br>&quot;
next

rs.close
conn.close
%>
</body></html>
 
I verified that the directory permissions allowed the IUSR account to create the ldb file buy opening the db in Access and seeing the ldb file appear.

Gary. Thanks for catching my typo. That actually happened when I was changing the specifics for posting here. the actual test file does have the correct filename and path.

Here is the message when I try to use a DSN:
Code:
Microsoft OLE DB Provider for ODBC Drivers error '80004005' 
[Microsoft][ODBC Microsoft Access Driver] Disk or network error. 
/wap/test5.asp, line 12

Line 12 is:
Code:
conn.Open &quot;dsn_Wap_Test&quot;

Thanks for the help.

Sincerely,
Steve
 
My guess is the oledb drivers themselves, have you verified that the latest version of MDAC is installed on the server? It's quite possible that the divers on the server are out of date. I've found this to be the case several times when developing for clients on my network and then installing the app on their server only to have it crap out.

Good Luck
 
mopacfan -

That was it. I updated the MDAC to 2.8 and the issue went away.

Thank you.

Cheer,
Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top