Click here to Skip to main content
15,897,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I decided to migrate from C/C++ file i/o to using databases and was introduced to sql++. Next I learned that i have to buy sqlapi++ isn't there a way to do that with vs 2008 without buying an sqlapi++?
Posted
Comments
Sergey Chepurin 14-Apr-12 13:10pm    
Normally, in VC++ to connect to database you use ADO (ADO.NET for C++/CLI), OLE DB (mostly, with SQL Server and Access) or ODBC (to any database). Why are you interested in tool (sql++) that is not even mentioned in Wikipedia?

1 solution

If you really want to use a database from C++ and can't afford to buy one how about using an open source one like mysql? Mysql is a pretty standard RDMS and you can get an ODBC driver for it for free. It's also used in loads of commercial products as well, so if you ever want a programming job it's a good thing to have on you CV or resume.

You can get msql and connector/ODBC (the mysql ODBC driver) from http://dev.mysql.com/.

As it sounds like you've never used ODBC before then I'd suggest picking up a second hand copy of "Inside ODBC" by Kyle Geiger. They're going for a song from traders on Amazon marketplace and I found it very lucid and easy to read.

Even if you've got the full version of VC++2008 I don't recommend using the MFC ODBC classes until you've got a relatively decent idea of what ODBC is and how to use it at raw API level.

I hope this helps you do what you need. And if it inspires you to become a competent C++ programmer that can write code to access databases then so much the better. The world needs them for high performance apps and there aren't enough to go around.

Cheers,

Ash
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900