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

How to Access microsoft access database using C++?

I have a database in Microsoft access. How can i connect to microsoft access database using C++? i want the code to access Microsoft access database using C++?
0
SarthakDudhara
Asked:
SarthakDudhara
1 Solution
 
cuziyqCommented:
MS Access databases can be accessed just like a SQL database can.  You can use most any data access API you want to get at it.  ODBC is the "official" cross-platform standard, but you can use ADO as well.
0
 
rstaveleyCommented:
0
 
SarthakDudharaAuthor Commented:
I want the code inC++ using which i can access microsoft access database.
0
 
evilrixSenior Software Engineer (Avast)Commented:
0
 
Anthony2000Commented:
You may want to look at using either DAO (Data Access Objects) or ADO (ActiveX Data Objects.

see:
http://msdn2.microsoft.com/en-us/library/aa266542(VS.60).aspx  a comparison of the two technologies
http://msdn2.microsoft.com/en-us/library/7wtdsdkh(VS.71).aspx
http://msdn2.microsoft.com/en-us/library/aa984815(VS.71).aspx

An extension library for DAO
http://www.codeproject.com/KB/database/dao.aspx

An example of using DAO without using MFC
http://www.codeguru.com/cpp/data/mfc_database/dao/article.php/c10359/

0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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