Tuesday, July 28, 2009

How to connect a C program to MS Access or MySQL?

I tried surfing this question many times in the web, but I couldn't possibly find a good answer to my question. Please help me find a good site for this question or you can help me refer to a book on how to connect C program to MS Access or MySQL.





If you refer me to a book, please indicate the author and title of the book. I will try to purchase the book to solve my problem.





But if you know the codes in connecting C program to MS Access or MySQL, please write few lines of code just to connect C program to a database.





Thank you in advance and God Bless!

How to connect a C program to MS Access or MySQL?
Check mysql api documentation.


If you still can not figure it out, may be you can contact a mysql expert at websites like http://askexpert.info/
Reply:If you want to connect to MS Access from C, you need to use ODBC. Google on ODBC and C. There’s tutorials on using ODBC with Access.





MySQL has a C API. They have this documented on their site, which you can find from browsing around. You’ll have to download MySQL from them, because it contains the library.


No comments:

Post a Comment