yoni
04-23-2007, 09:24 AM
Hi all.
I am using GoDaddy.com's hosting service.
I am not sure if the problem is my code or their server.
I use the following code as my connection to the Access Database:
dsn_name = "access_IsraelPharm.dsn"
sDSNDir = Server.MapPath("_dsn")
connectstr = "filedsn=" & sDSNDir & "/" & dsn_name
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM Drugs"
Set oRS = oConn.Execute(qry)
oRs.close
Set oRs = nothing
Set oConn = nothing
The thing is that sometimes it works and sometimes it does not.
When I first load the page, it works. If I then click Refresh, I get
Provider error '80004005'
Unspecified error
/makeanorder.asp, line 7
If I then wait a few minutes and click refresh again, it might work....and so forth and so forth.
So, My question is....
Is the problem in my code (is something being left open, that is causing the failure) or is my problem on their end?
Thanks.
I am using GoDaddy.com's hosting service.
I am not sure if the problem is my code or their server.
I use the following code as my connection to the Access Database:
dsn_name = "access_IsraelPharm.dsn"
sDSNDir = Server.MapPath("_dsn")
connectstr = "filedsn=" & sDSNDir & "/" & dsn_name
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open connectstr
qry = "SELECT * FROM Drugs"
Set oRS = oConn.Execute(qry)
oRs.close
Set oRs = nothing
Set oConn = nothing
The thing is that sometimes it works and sometimes it does not.
When I first load the page, it works. If I then click Refresh, I get
Provider error '80004005'
Unspecified error
/makeanorder.asp, line 7
If I then wait a few minutes and click refresh again, it might work....and so forth and so forth.
So, My question is....
Is the problem in my code (is something being left open, that is causing the failure) or is my problem on their end?
Thanks.