hi!

What sql librries are for c++? what is the most popular?

Recommended Answers

All 3 Replies

If you are using Visual C++, there are a lot of libraries available.
Oracle is probably the most popular.
If you're using Visual Studio, you would add a reference to System.Data.OracleClient.
...then (in your code) add

using namespace System::Data::OracleClient;

If you want to support any sql-compliant database then use ODBC, which is the oldest and most common way to access them. There are a few free c++ odbc wrapper classes, just use google and you will easily find them. Also you might want to read an odbc tutorial, which again can easily be found with google.

thanks for the answers

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.