Results 1 to 6 of 6

Thread: ADO v's DAO

  1. #1

    Thread Starter
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334

    Post

    Quick check:

    Time taken to run through 125 records in an Access DB and print one field to the immediates window...

    DAO 3.51 = 190 ticks
    ADO 2.1 = 480 ticks

    Is this right? Have I been fed a line of crap regrading ADO or is the particular bullshit true if you think of SQL / Oracle?

    ------------------
    Matt G
    Either [email protected]] or [email protected]

  2. #2
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    Post

    Just keep one thing in mind DAO has been in the game for some time now. DAO has also been designed specifically MS ACCESS, so in theory it should be faster. ADO has been designed for a Wider range of data acess types, but a lot depends on how you connect to the database you cursors etc.

    Personally I still prefer DAO, easier and quicker to use.


    ------------------
    Have Fun.
    Maartin.
    [email protected]
    -----------------------


  3. #3
    New Member
    Join Date
    Jan 2000
    Location
    Spain
    Posts
    2

    Post

    I prefer ADO, because is more flexibility than DAO,For example you can disconnect the recordset, work with it, connetcted agauin with the data base and update or insert the records, so you expend less network resources

  4. #4

    Thread Starter
    Hyperactive Member gravyboy's Avatar
    Join Date
    Jan 2000
    Location
    Where I was before . . . if you don't know then you're new!
    Posts
    334

    Post

    I agree Enrique, that's the reason I'm using ADO. However as most db operations progress THROUGH the db (ie movefirst, action, <do until x> action, movenext, <loop> the loss in performance will be noticable especially if the recordsets ar large.

    BTW The .updatebatch can take forever as well so including a scheduler to put this at the end of the business day might be good.

    ------------------
    Matt G
    Either [email protected]] or [email protected]

  5. #5
    Guest

    Post

    I have had much better success with DAO not only in terms of coding it but also with compatibility when installing on different systmes!

  6. #6
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    DAO is being phased out so don't make anything new with DAO. M$ future improvements will be to ADO

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