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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.