Results 1 to 5 of 5

Thread: ADO Connection

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    SANTA ANA
    Posts
    14

    Angry 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?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    SANTA ANA
    Posts
    14
    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")


  4. #4
    New Member
    Join Date
    Apr 2001
    Location
    Hungary
    Posts
    8
    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

  5. #5
    Frenzied Member seoptimizer2001's Avatar
    Join Date
    Apr 2001
    Location
    Toledo, Ohio USA GMT -5
    Posts
    1,075
    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
  •  



Click Here to Expand Forum to Full Width