|
-
May 9th, 2001, 01:57 PM
#1
Thread Starter
New Member
ADO Connection
When I try to connect I get the following message:
ADODB.Connection error '800a0e7a'
ADO could not find the specified provider.
This is the provider that I am using Provider=MSDASQL.1
I am trying to connect to an Access 97 database.
Does anyone have any clues?
-
May 9th, 2001, 02:17 PM
#2
Black Cat
You're using the driver for SQL Server. Use the driver for Access.
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Databases\test.mdb;
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
-
May 9th, 2001, 02:36 PM
#3
Thread Starter
New Member
Hi JoshT,
can you tell me what is wrong with this connection string? I still get the same error message..
DSNtemp="DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & server.mappath("Program Files\Microsoft Office\Office\Samples\Northwind.mdb")
-
May 9th, 2001, 06:15 PM
#4
New Member
Your DBQ is wrong.
There are two ways to give the path your database:
1. Using server.mappath
strConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=" & server.mappath("northwind.mdb")
This give back the right path to your db if it is in that directory where your asp is.
2.You can write the physical phisical path to your db as DBQ
strConnectionString = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ=
c:\Program Files\Microsoft Office\Office\Samples\Northwind.mdb"
As far as I know it's worth using the first mode because if the db is a different folder then your web application then it is not sure that you have permission to reach that folder.
Jan
Ps.
Sorry my poor english, but it is after midnight )
I hope I can help
-
May 11th, 2001, 03:02 PM
#5
Frenzied Member
For Access '97 you should use the Microsoft Jet 3.51 provider.
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
|