Solved

Accessing db from C

Posted on 2000-04-22
1
198 Views
Last Modified: 2010-04-15
Can somebody please point me in the right direction. What I want to know is how to connect to a db, an MS Access for example. And ofcourse how to query the db. I'm using plain C.
0
Comment
Question by:sa9813
1 Comment
 
LVL 1

Accepted Solution

by:
syscyk earned 100 total points
ID: 2743446
You have a couple of options here, sa9813.
  You can use ODBC (Open DataBase Connect) to get to the database,  you can use embedded SQL (if your database supports it), or you can use the proprietary API that the database vendor gives you.  With Oracle, for instance, you get Pro C, or the ORACLE OCI.  The benefit of ODBC is that it is portable between databases. The downside is that it is slow, and only the most basic SQL stuff is supported.  I would suggest using the API supplied by the database vendor, that is ususally the best in terms of performance.  And when you are using a relational database, you need all the performance you can get, and then some.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now