http://www.perlmonks.org?node_id=327813


in reply to What is the difference between ADO and ODBC ?

From experience in writing wrappers for both and profiling both using DevPartner I can actually say that ODBC is a lot faster. You trade of ease against performance when going with ADO. Though this depends on the wrapper you write and the way you use the ODBC calls. Besides ODBC is portable between platforms and you can use it to read flat files, access files, excel files, sql server, oracle, mysql etc.
  • Comment on Re: What is the difference between ADO and ODBC ?

Replies are listed 'Best First'.
Re: Answer: What is the difference between ADO and ODBC ?
by inman (Curate) on Feb 10, 2004 at 09:11 UTC
    ODBC has been around for a long time. The system is stable and vendor drivers have been updated and bug fixed over many versions. ODBC is a self contained API that can be installed and used on both UNIX and Windows.

    ADO is new than ODBC and arguably better designed (esp. in terms of programming interface). Being newer, the ADO drivers have been through fewer bug fix and update cycles. ADO also requires that the COM layer is instantiated. This has something of an ovehead and adds considerably to the total number of things that can go wrong with CGI apps etc. ADO is targeted at Windows.

    Not mentioned in the question but a crucial consideration for Perl developers is the DBD/DBI platform. drivers are available for ODBC and ADO data sources. Most drivers use the native database APIs.