如果是微软的数据库(如access,sql server)则dao最快

解决方案 »

  1.   

    ODBC is irrelevant herehere is a reply from Microsoft on the topic of "What is Better ADO or DAO ? "http://groups.google.com/groups?hl=en&selm=ORHJpVQUBHA.301%40cppssbbsa01.microsoft.com"Carlos,In the majority of situations ADO will be significantly superior to DAO in 
    terms of performance, reliability, scalability, and compatibility.  DAO is 
    no longer being developed by Microsoft so there will be no new updates or 
    features added to it.  ADO is the future of data access so you will be much 
    better off learning and using ADO.  If you do a search for "ado dao 
    performance" (without the quotes) in the MSDN library you will find a 
    number of articles detailing the differences.Kevin Williamson - Microsoft Visual Basic Developer Support
    "
    As for some benching, read this thread (note, it was done in 1998)http://groups.google.com/groups?hl=en&threadm=u3I%24EMhl9GA.262%40uppssnewspub04.moswest.msn.net&rnum=1&prev=/groups%3Fq%3Dperformance%2Bado%2Bdao%26hl%3Den%26rnum%3D1%26selm%3Du3I%2524EMhl9GA.262%2540uppssnewspub04.moswest.msn.netADO 1.5 vs DAO 3.5#Loops           ADO        DAO
    1                405        236    ms
    10             4,037      2,545    ms
    100           40,182     24,915    ms
      

  2.   

    Just a hint. I read this in some newsgroups. ADO+VB has better performance than ADO+VC, since ADO has been optimized internally for VB. If you use VC, then OLEDB may be a better choice.
      

  3.   

    ADO使用时和驱动程序相关,就对于JET数据库来说,速度不如DAO,但是ADO使用了连接池,多客户的访问的性能会有优势的
      

  4.   

    VB用ADO的确蛮快的……
    VC速度一般吧……当然还要看数据库。