Connect to database from C++?

R

Rune Allnor

Hi all.

I'd like to connect to a database, using an ODBC connection,
from a C++ application.

What options do I have, sticking with standard C++ as long
as possible?

I know how to do his through the Qt library, but that's
unavailable at this particular system.

Rune
 
M

Michael Doubez

I'd like to connect to a database, using an ODBC connection,
from a C++ application.

What options do I have, sticking with standard C++ as long
as possible?

There is the SOCI project which is released under boost license and is
rather standard C++/Boost friendly.
But the ODBC backend is not officially maintained:
http://soci.sourceforge.net/
 
G

Goran

Hi all.

I'd like to connect to a database, using an ODBC connection,
from a C++ application.

What options do I have, sticking with standard C++ as long
as possible?

I know how to do his through the Qt library, but that's
unavailable at this particular system.

iODBC, perhaps? (http://www.iodbc.org). But you'll still need database
driver for your system and database.

Goran.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top