|
-
Feb 1st, 2006, 11:47 AM
#1
Thread Starter
Addicted Member
Provider (0x80004005)
Page loads ok but if I refresh it I get the following error:
Provider (0x80004005)
Unspecified error
The error is in the conn.open line
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & server.MapPath("\abc\abc.mdb"))
WHY?
access 97 db
running on IIS on XP
Thanks
Another light-hearted post from Guru 
-
Feb 1st, 2006, 12:12 PM
#2
Fanatic Member
Re: Provider (0x80004005)
Since you're using ADO I would use my connection as follows:
VB Code:
set Conn = Server.CreateObject("ADODB.Connection")
lcStrDB = "c:\db\abc.mdb"
set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open("Provider=Microsoft.OLEDB.Jet.4.0;Data Source=" & lcStrDB ";User ID=admin;password=;")
I'm not sure if the statement server.MapPath("\abc\abc.mdb")) is correct. I think Server.MapPath returns the folder location of the file only so you'll have to explicitly concatenate the mdb name to the return value.
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|