ADO Performance Question

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

  1. #1

    Default ADO Performance Question

    Hey there,

    I connect to Access 2000 using ASP/ADO (surprise
    surprise). Currently, my connection string looks like this:

    Set DB = Server.CreateObject("ADODB.Connection")
    DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
    DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
    DBPath

    However, I've also seen this variation as well:

    set conn=Server.CreateObject("ADODB.Connection")
    conn.Provider="Microsoft.Jet.OLEDB.4.0"
    conn.Open DBPath

    Is either one of those methods (or another form)
    preferable for any reason? Be it speed, support, etc?
    MDW Guest

  2. Similar Questions and Discussions

    1. Performance Question
      "xixi" <dai_xi@yahoo.com> wrote in message news:c0f33a17.0306261139.5b0de317@posting.google.com... There will be an extra access to some of the...
    2. Question about performance
      Hay gang, I have a compound question about MovieClips (MC) in comparison to other classes in Flash. I am noticing a lot of solutions to people?s...
    3. performance question...
      I've done a few tests on code speed in lingo and I reckon there'd be negligible differences in speed either way, unless you're iterating the code a...
    4. A performance question
      you can easily test out the speed of a particular piece of code by including a timer eg tm=the timer repeat with ty=1 to 100000 th=random(22)...
    5. directio performance question
      Hi, I've got what is probably for most of you a very basic question... From what I've read, in solaris, mounting an oracle filesystem with the...
  3. #2

    Default Re: ADO Performance Question

    ODBC has a little extra overhead. It's also been deprecated.
    See [url]http://www.aspfaq.com/2126[/url] for more information.
    Also see the fourth paragraph, under "Summary", in
    [url]http://support.microsoft.com/?kbid=222135[/url]

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




    "MDW" <anonymous@discussions.microsoft.com> wrote in message
    news:029901c3bc53$37b98b40$a101280a@phx.gbl...
    > Hey there,
    >
    > I connect to Access 2000 using ASP/ADO (surprise
    > surprise). Currently, my connection string looks like this:
    >
    > Set DB = Server.CreateObject("ADODB.Connection")
    > DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
    > DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
    > DBPath
    >
    > However, I've also seen this variation as well:
    >
    > set conn=Server.CreateObject("ADODB.Connection")
    > conn.Provider="Microsoft.Jet.OLEDB.4.0"
    > conn.Open DBPath
    >
    > Is either one of those methods (or another form)
    > preferable for any reason? Be it speed, support, etc?

    Aaron Bertrand [MVP] Guest

  4. #3

    Default Re: ADO Performance Question

    "Aaron Bertrand [MVP]" <aaron@TRASHaspfaq.com> wrote in message
    news:udhnpbFvDHA.3224@tk2msftngp13.phx.gbl...
    > ODBC has a little extra overhead. It's also been deprecated.
    > See [url]http://www.aspfaq.com/2126[/url] for more information.
    > Also see the fourth paragraph, under "Summary", in
    > [url]http://support.microsoft.com/?kbid=222135[/url]
    >
    > --
    > Aaron Bertrand
    > SQL Server MVP
    > [url]http://www.aspfaq.com/[/url]
    >
    >
    >
    >
    > "MDW" <anonymous@discussions.microsoft.com> wrote in message
    > news:029901c3bc53$37b98b40$a101280a@phx.gbl...
    > > Hey there,
    > >
    > > I connect to Access 2000 using ASP/ADO (surprise
    > > surprise). Currently, my connection string looks like this:
    > >
    > > Set DB = Server.CreateObject("ADODB.Connection")
    > > DBPath = "DBQ=" & server.mappath(strDatabaseLocation)
    > > DB.Open "DRIVER={Microsoft Access Driver (*.mdb)}; " &
    > > DBPath
    > >
    > > However, I've also seen this variation as well:
    > >
    > > set conn=Server.CreateObject("ADODB.Connection")
    > > conn.Provider="Microsoft.Jet.OLEDB.4.0"
    > > conn.Open DBPath
    > >
    > > Is either one of those methods (or another form)
    > > preferable for any reason? Be it speed, support, etc?

    I now use:

    Set objADO = CreateObject("ADODB.Connection")
    objADO.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &
    Server.MapPath(database.mdb)

    Actually, I use:

    Const cDSN = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
    Const cMDB = "database.mdb"
    Set objADO = CreateObject("ADODB.Connection")
    objADO.Open cDSN & Server.MapPath(cMDB)

    Watch for word-wrap.


    McKirahan 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