Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. ODBC classes or ADO connection

ODBC classes or ADO connection

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasequestioncomtutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Demian Panello
    wrote on last edited by
    #1

    Hi. I'm writing an application, (using MFC), that connects to a SQL 2000 database. In the past I have used indistinctly ADO OLEDB, (using #import statetment and all these COM stuff) and the MFC ODBC classes CDatabase, CRecordset, etc. My question is: Which is the more efficient method?. I will lose something if I start to use ODBC classes more often?. Which are the differents, (technical diff I mean) between these two methods? It would be great to clarify all this because I'm working with those techniques for a long time ago and I really don't know their basements. :) Thank you.

    Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

    A 1 Reply Last reply
    0
    • D Demian Panello

      Hi. I'm writing an application, (using MFC), that connects to a SQL 2000 database. In the past I have used indistinctly ADO OLEDB, (using #import statetment and all these COM stuff) and the MFC ODBC classes CDatabase, CRecordset, etc. My question is: Which is the more efficient method?. I will lose something if I start to use ODBC classes more often?. Which are the differents, (technical diff I mean) between these two methods? It would be great to clarify all this because I'm working with those techniques for a long time ago and I really don't know their basements. :) Thank you.

      Demian. "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone." -Bjarne Stroustrup, computer science professor, designer of C++ programming language (1950- )

      A Offline
      A Offline
      Ali Rafiee
      wrote on last edited by
      #2

      As far as I know, and I am not a database expert, ADO is build in such a way that the underlying database type is irrelavent to the programmer. Which means that when you are accessing a SQL database with ADO, it is probably going to make calls through ODBC to access the data, which is adding a middle man. In other words using ODCB will be faster than using ADO.

      AliR. Visual C++ MVP

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups