Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data Base(MS Access) connectivity using VC++.

Status
Not open for further replies.

trin

MIS
Aug 21, 2001
7
BG
How can i connect Database to using C++ program.
Problem:

There is one *.txt file with 3 fields.These 3 fields data is to be inserted into one table with 3 fields in MS Access database using C++ program.
 
Sorry to evade answering your question but...

Why would you use C++ to import a text file into Access anyway? It is very easy to do this in Access and I can't see any gain from using C++ (Automation?).

Also, Access as a database is very "resource consuming" on the workstation (Assuming its over a network). To me the C++ Access combination is pointless as all of the efficiency gain from C++ is lost when using Access. Try SQL,Betrive or Oracle.

Otherwise I have heard DAO is easy to use.
 
MinAmi is right, IMO. DAO is the easiest way to talk to Access back-ends. Let us know if you need some sample code and we can post it.

===========================================
Small footprint P2P web server for Windows,
File-sharing, mobile/wireless apps & more
===========================================
 
You can also use ODBC API.
Is not difficult to learn, but is too much for writing it in the forum.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top