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

what does this error mean the a

Status
Not open for further replies.

unicorn11

Programmer
Jun 10, 2000
392
IN
what does this error mean

the access file that i have uploaded is fine and is not corrupt

Code:
Microsoft JET Database Engine error '80004005' 

Cannot open database ''. It may not be a database that your application recognizes, or the file may be corrupt. 

/abhi/connect.asp, line 7

my connection strings is

Code:
Con.Open "Data Source=" & Server.Mappath("db/db1.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"

i cannot creale a dsn based connection

Regards ::) Unicorn11
abhishek@tripmedia.com

[red]Nothing is permanent in life except Change[red]
 
It looks as if Server.Mappath is not norking correctly when trying to pass this in to the connection string.
Try this instead (it worked for me)

Dim sConString, con
sConString = "Data Source=" & Server.Mappath("db/db1.mdb") & ";Provider=Microsoft.Jet.OLEDB.4.0;"
Response.Write sConString
set con = server.CreateObject("ADODB.Connection")
con.Open sConString


Simon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top