ADO error accessing - Access Database

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default ADO error accessing - Access Database

    Hello,

    I have an Access database that is setup as a System Datasource on a Win2k Server. This Access database is accessed by about 15 workstations using another program already and has a file lock (.lck). I am trying to access the Access database via ASP on the IIS server at the same time but am getting an ADO error (Source: ADO Number: -2146824584 (0x800a0e78)) that it can not make the connection. Is this because the other program has a file lock?

    If I copy the access file to another directory I can get the server to connect to it beautifully, but I need to pull live data over to the web server. Any input would be greatly appreciated. Thanks.

    --
    CHRISTOPHER KNAPP
    [email]chris@foarm.com[/email]


    Christopher Knapp Guest

  2. Similar Questions and Discussions

    1. Access database error
      I'm trying to add an Access data source in coldfusion following step for step a guide from lynda.com. When I try to submit, this is what I get: ...
    2. Error accessing database
      This is not working for some reason it is telling me that ds_products does not exist. here is the code... <CFQUERY NAME="products"...
    3. Accessing data from an MS Access database on a remote web server
      Please forgive me if I have posted this to the wrong group! I have written a VB6 application that works fine. With that said, I would like to add...
    4. Problem with accessing table in access database
      i had a working site with iis5 winxp professional on a p4 machine. suddenly i am having problems with and the asp pages which have some updating...
    5. OBDC Error while Accessing MS Access
      Hi, I am using MS Access as a database in my Windows XP Professional Edition(SP 1). While connecting to MS Access from my ASP Page thru' ODBC, i...
  3. #2

    Default Re: ADO error accessing - Access Database

    What is the TEXT (read: the important part) of the error message?

    Sorry, I'm working on it, but I haven't memorized all the 0x800... error
    codes just yet.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]






    "Christopher Knapp" <chris@foarm.com> wrote in message
    news:OAAoiawIEHA.2744@TK2MSFTNGP10.phx.gbl...
    Hello,

    I have an Access database that is setup as a System Datasource on a Win2k
    Server. This Access database is accessed by about 15 workstations using
    another program already and has a file lock (.lck). I am trying to access
    the Access database via ASP on the IIS server at the same time but am
    getting an ADO error (Source: ADO Number: -2146824584 (0x800a0e78)) that it
    can not make the connection. Is this because the other program has a file
    lock?

    If I copy the access file to another directory I can get the server to
    connect to it beautifully, but I need to pull live data over to the web
    server. Any input would be greatly appreciated. Thanks.

    --
    CHRISTOPHER KNAPP
    [email]chris@foarm.com[/email]




    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: ADO error accessing - Access Database

    Hello,

    Here is the entire error-


    ================================================== ========
    Title- Database Connection Error

    Text- The server encountered an error while procession a database request.
    For more information, click Details.

    Details- Server error: Unable to retrieve the list of record sources from
    a database using the connection string: DSN=shpdb;DRIVER={Microsoft Access
    Driver (*.mdb)}.
    The following error message comes from the database driver software; it may
    appear in a different language depending on how the driver is configured.
    ----------------------------------------------------------------------------
    -----------------------
    Source: ADO
    Number: -2146824584 (0x800a0e78)
    ================================================== ==================








    --
    CHRISTOPHER KNAPP
    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:O0ZUFjwIEHA.3572@TK2MSFTNGP10.phx.gbl...
    > What is the TEXT (read: the important part) of the error message?
    >
    > Sorry, I'm working on it, but I haven't memorized all the 0x800... error
    > codes just yet.
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >
    >
    >
    >
    >
    > "Christopher Knapp" <chris@foarm.com> wrote in message
    > news:OAAoiawIEHA.2744@TK2MSFTNGP10.phx.gbl...
    > Hello,
    >
    > I have an Access database that is setup as a System Datasource on a Win2k
    > Server. This Access database is accessed by about 15 workstations using
    > another program already and has a file lock (.lck). I am trying to access
    > the Access database via ASP on the IIS server at the same time but am
    > getting an ADO error (Source: ADO Number: -2146824584 (0x800a0e78)) that
    it
    > can not make the connection. Is this because the other program has a file
    > lock?
    >
    > If I copy the access file to another directory I can get the server to
    > connect to it beautifully, but I need to pull live data over to the web
    > server. Any input would be greatly appreciated. Thanks.
    >
    > --
    > CHRISTOPHER KNAPP
    > [email]chris@foarm.com[/email]
    >
    >
    >
    >

    Christopher Knapp Guest

  5. #4

    Default Re: ADO error accessing - Access Database

    > DSN=shpdb;DRIVER={Microsoft Access Driver (*.mdb)}

    Is this your actual connection string? Where did you learn to construct a
    connection string this way?

    Please see [url]http://www.aspfaq.com/2126[/url] and try your page with a proper and
    valid connection string.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    Aaron Bertrand [MVP] Guest

  6. #5

    Default Re: ADO error accessing - Access Database

    I am using the Database Results Wizard in FrontPage and it is what is giving
    that string and error.

    If I copy the database to another directory it works perfectly...but I need
    live data.

    --
    CHRISTOPHER KNAPP



    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:O7KH6swIEHA.3440@TK2MSFTNGP09.phx.gbl...
    > > DSN=shpdb;DRIVER={Microsoft Access Driver (*.mdb)}
    >
    > Is this your actual connection string? Where did you learn to construct a
    > connection string this way?
    >
    > Please see [url]http://www.aspfaq.com/2126[/url] and try your page with a proper and
    > valid connection string.
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >

    Christopher Knapp Guest

  7. #6

    Default Re: ADO error accessing - Access Database

    >> I am using the Database Results Wizard in FrontPage

    Have you tried NOT doing that?


    Aaron Bertrand [MVP] Guest

  8. #7

    Default Re: ADO error accessing - Access Database

    Hello,

    Well...you forced me to give up my crutch and I thank you for that! I just
    spent the last hour reading and typing...and now I finally understand how
    the connection works and how to pull the data without using the FrontPage
    stuff. I have rewritten the connection string and query, and they are now
    working. I actually like it this way much better. I feel like I have more
    control over what I am doing, rather than being bound to the constraints of
    the Results Wizard. Thanks for all the input!

    --
    CHRISTOPHER KNAPP


    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:%23cvF54wIEHA.2876@TK2MSFTNGP09.phx.gbl...
    > >> I am using the Database Results Wizard in FrontPage
    >
    > Have you tried NOT doing that?
    >
    >

    Christopher Knapp Guest

  9. #8

    Default Re: ADO error accessing - Access Database

    I plan on using this as a quotable quote. This is outstanding! It's often
    difficult to wean someone off of Frontpage, Dreamweaver, whatever, for
    ASP-coding, but when it happens, this is what the result SHOULD be. It
    doesn't usually happen, and when it does, certainly not as fast as this.
    And it's usually quite some time before the person would begin to see the
    light about having more control and what not. Bravo Christopher!

    Ray at home

    "Christopher Knapp" <chris@foarm.com> wrote in message
    news:O2iQfcxIEHA.2844@tk2msftngp13.phx.gbl...
    > Well...you forced me to give up my crutch and I thank you for that! I
    just
    > spent the last hour reading and typing...and now I finally understand how
    > the connection works and how to pull the data without using the FrontPage
    > stuff. I have rewritten the connection string and query, and they are now
    > working. I actually like it this way much better. I feel like I have
    more
    > control over what I am doing, rather than being bound to the constraints
    of
    > the Results Wizard. Thanks for all the input!

    Ray at Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139