[Webinar] Streamline your web hosting managementRegister Today

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1150
  • Last Modified:


I start learning database programming in MFC by using Appwizard.  In the middle of Appwizard , I have to choose OLEDB or ODBC.

I observed there are completely two different results for the two options.

For selecting OLEDB, a class is generated.  The structure of this class is same as the table in the database.  In addition, a recordset class is also generated.  This recordset class's base class is "CCommand"

For selecting ODBC, a recordset class is generated.  This recordset class's base class is "CRecordSet".

They are very different pictures in these two options.

My questions are :
1. Which one should I learn OLEDB or ODBC?
2. Will OLEDB replace ODBC in future by microsoft?

Any comments?
  • 2
1 Solution
1. Which one should I learn OLEDB or ODBC?

Definitely OLEDB and ADO. As Microsoft pushes the DNA architecture more and more, ODBC will slowly be phased out.

2. Will OLEDB replace ODBC in future by microsoft?

That has always been the stated direction of Microsoft. This is why there is an OLEDB provider for ODBC drivers. That way, even if your particular DBMS doesn't have an OLEDB provider yet, if it has an ODBC driver, you can still use OLEDB or ADO.

By the way, I would also concentrate on ADO where possible.

Tom Archer
As tma said, you should choose ADO with OLE DB data provider. ADO is much easier to use than ODBC and DAO.
You don't have to worry about OLE DB usually. ADO is the data access technology you should use. For more information, see

Microsoft Universal Data Access
alanpongAuthor Commented:
I am familiar with ODBC and ADO in VB6.
ADO is a "more easier to understand"
higher application level than
OLEDB.  I've never touch OLEDB before
since it is a quite low level thing.
Anyway, I have to learn more about OLEDB and ADO from the samples in the MSDN CD. Thanks.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now