using Access queries using ADOX

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

  1. #1

    Default using Access queries using ADOX

    Hello,
    I have the following code in an asp 3.0 page:

    Dim dbConn As adodb.Connection
    Dim cat As ADOX.Catalog
    Dim view As ADOX.view

    Set dbConn = server.createobject("ADODB.connection")
    dbConn.Open sConnstr

    Set cat = server.createobject("ADOX.Catalog")
    cat.ActiveConnection = dbConn

    Set view = cat.views("GetWAVLCount")

    Which works fine when run in an asp-page or on my development server.
    However, when I put the code in a vb6 com-dll and deploy it on the
    production server, the last line of code generates a typ mismatch
    error (13). Does anyone have any idea why?

    I can also run the code on the production server using asp instead of
    putting it in a dll.

    Thankful for any help,
    Arvid Dellien
    Arvid Dellien Guest

  2. Similar Questions and Discussions

    1. adox asp ms access delete a column from a table
      Hi folx - Here is the code I'm trying (but it errors out with "Item cannot be found in the collection corresponding to the requested name or...
    2. Simultaneous SQL queries to Access
      In evaluating asp and an Access database as a way to store user data from an Authorware training piece, I ran across this article: "For...
    3. How to get the lenght of an Access database using ADOX
      I want to administer a remote Access database using ASP. I use the ADOX setup. I am able to list the tables, the fields in each table, the field...
    4. Creating queries in Access (for ASP)
      Hi, So far I have been writing ASP and embedding my SQL in the ASP pages. But, I've heard advantages of creating queries inside the database...
    5. Translate Access queries to ASP
      Hi, I'm still confused about my queries, I want to do something is ASP that is easily done in Access. I'll post the Access queries below as a...
  3. #2

    Default Re: using Access queries using ADOX

    Looks like ADOX is not registered on the Production server, or there is a
    mismatch between the versions you use for compiling the DLL and the one on
    production server.

    --
    Manohar Kamath
    Editor, .netBooks
    [url]www.dotnetbooks.com[/url]


    "Arvid Dellien" <arvidd@hotmail.com> wrote in message
    news:2475bbfb.0308180105.386d58a6@posting.google.c om...
    > Hello,
    > I have the following code in an asp 3.0 page:
    >
    > Dim dbConn As adodb.Connection
    > Dim cat As ADOX.Catalog
    > Dim view As ADOX.view
    >
    > Set dbConn = server.createobject("ADODB.connection")
    > dbConn.Open sConnstr
    >
    > Set cat = server.createobject("ADOX.Catalog")
    > cat.ActiveConnection = dbConn
    >
    > Set view = cat.views("GetWAVLCount")
    >
    > Which works fine when run in an asp-page or on my development server.
    > However, when I put the code in a vb6 com-dll and deploy it on the
    > production server, the last line of code generates a typ mismatch
    > error (13). Does anyone have any idea why?
    >
    > I can also run the code on the production server using asp instead of
    > putting it in a dll.
    >
    > Thankful for any help,
    > Arvid Dellien

    Manohar Kamath [MVP] Guest

  4. #3

    Default Re: using Access queries using ADOX

    Im sure ADOX is registered on the production server. I registered the
    same adox-version as I use on my development server on the production
    server, and I can instantiate ADOX objects by using asp on it. But the
    code still generates the same error when run in my dll. How do I
    resolve mismatch between versions?


    "Manohar Kamath [MVP]" <mkamath@TAKETHISOUTkamath.com> wrote in message news:<ecZMtaYZDHA.2024@TK2MSFTNGP12.phx.gbl>...
    > Looks like ADOX is not registered on the Production server, or there is a
    > mismatch between the versions you use for compiling the DLL and the one on
    > production server.
    >
    > --
    > Manohar Kamath
    > Editor, .netBooks
    > [url]www.dotnetbooks.com[/url]
    >
    >
    > "Arvid Dellien" <arvidd@hotmail.com> wrote in message
    > news:2475bbfb.0308180105.386d58a6@posting.google.c om...
    > > Hello,
    > > I have the following code in an asp 3.0 page:
    > >
    > > Dim dbConn As adodb.Connection
    > > Dim cat As ADOX.Catalog
    > > Dim view As ADOX.view
    > >
    > > Set dbConn = server.createobject("ADODB.connection")
    > > dbConn.Open sConnstr
    > >
    > > Set cat = server.createobject("ADOX.Catalog")
    > > cat.ActiveConnection = dbConn
    > >
    > > Set view = cat.views("GetWAVLCount")
    > >
    > > Which works fine when run in an asp-page or on my development server.
    > > However, when I put the code in a vb6 com-dll and deploy it on the
    > > production server, the last line of code generates a typ mismatch
    > > error (13). Does anyone have any idea why?
    > >
    > > I can also run the code on the production server using asp instead of
    > > putting it in a dll.
    > >
    > > Thankful for any help,
    > > Arvid Dellien
    Arvid Dellien 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