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!

0x80004005 Unspecified error

Status
Not open for further replies.

cturland

Programmer
Sep 25, 2000
66
0
0
GB
This problem is driving me mad and it has only become present since I switched to Win2000 - this could also mean it was when I switched to IE 6.0.

I connect to an Access database using a DSN string as follows:

--------------------------------------------------------
strConnection = "DRIVER=Microsoft Access Driver (*.mdb);" &_
"UID=admin;" &_
"PageTimeout=0" &_
"Password=xxxxx;" &_
"DBQ=" & strDatabasePath & ";"

Set RecordSet = Server.CreateObject("ADODB.RecordSet")
RecordSet.CursorLocation = adUseClient

Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Open strConnection

strQuery = "SELECT Date, Headline, Story FROM News ORDER BY Date"
RecordSet.Open strQuery, objConn, adOpenStatic, adLockBatchOptimistic
--------------------------------------------------------

I then use the Recordset and close the connection with:

--------------------------------------------------------
RecordSet.Close
Set RecordSet = Nothing
objConn.Close
Set objConn = Nothing
--------------------------------------------------------

This works the first time I load the page, but when I refreash it, I get the error:

--------------------------------------------------------
Error Type:
Provider (0x80004005)
Unspecified error
--------------------------------------------------------

I'm assuming that the database is locking. Is there anyway I can get round this?

Thanks,
Carl
 
It's ok! I just realised that I missed a ';' off my timeout setting!!! Doh! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top