Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS Access
 Data source name not found, please help
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

round
New Member

Taiwan
67 Posts

Posted - 11 May 2001 :  20:25:36  Show Profile
My web host tell me the Database Directory is D:\Inetpub\queerbbs\db
So, I upload snitz2000.mdb in that folder "db"
Inside config.asp, i change database connection to:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Server.MapPath("D:\Inetpub\queerbbs\db\snitz2000.mdb") '## MS Access 2000 using virtual path


But it turns out the error message as belows:
Microsoft OLE DB Provider for ODBC Drivers error '80004005'

[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
/inc_top.asp, line 51
What can I do? Thanks.

Edited by - round on 11 May 2001 20:31:06

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2001 :  20:38:30  Show Profile
Try this instead:

strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Inetpub\queerbbs\db\snitz2000.mdb;" '## MS Access 2000
Go to Top of Page

round
New Member

Taiwan
67 Posts

Posted - 11 May 2001 :  21:14:10  Show Profile
Thanks for your instant reply.
After I try your method
I got another error message:

Microsoft JET Database Engine error '80004005'
Unrecognized database format 'D:\Inetpub\queerbbs\db\snitz2000.mdb'.
/inc_top.asp, line 296 .

line 296 in inc_top.asp is
set rsWho = my_Conn.Execute (strSql)
Please help again. Thanks.


round
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2001 :  21:23:29  Show Profile
ok try this one:

strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=D:\Inetpub\queerbbs\db\snitz2000.mdb" '## MS Access 97

Go to Top of Page

round
New Member

Taiwan
67 Posts

Posted - 11 May 2001 :  21:41:50  Show Profile
Thanks so much again.

But I got the same error message as above.
Another thing I have to point out is I used to host on 121host.net, which is very easy to set up, but the server is not quite reliable. So I try to switch to cihost.com. So, the database(snitz2000.mdb) got some data already. Will it be a problem? Thanks again.

round
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 11 May 2001 :  23:19:44  Show Profile
Ok...

Hmmm...

Let's try this one..

strConnString = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("/db/snitz2000.mdb") '## MS Access 97 using virtual path


Is your database named snitz2000.mdb ? or is it snitz_forums_2000.mdb ?
Go to Top of Page

round
New Member

Taiwan
67 Posts

Posted - 13 May 2001 :  01:21:37  Show Profile
quote:

Try this instead:
strConnString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Inetpub\queerbbs\db\snitz2000.mdb;" '## MS Access 2000



Thank Richard Kinser,
The one above works great. The reason that I got another error message is because I don't have permission for to that database account. I have asked my web host to change it. It's working now. Thank you again.


round
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 13 May 2001 :  03:11:42  Show Profile
you're welcome
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07