Hello,
Can anyone tell me how to connect to an SQL database and integrate the data into a program via C++. If at all possible, I would like to stick to standard coding. Thanks.
Hello,
Can anyone tell me how to connect to an SQL database and integrate the data into a program via C++. If at all possible, I would like to stick to standard coding. Thanks.
There is no library that works for all databases, you'll have to use one for the specific database you're using.
The library files and includes can usually be found in the installation folder of the database if it's Windows you're using.
Documentation on how to use the library should be included as well.
Well I am using MS SQL database, if that helps.
Search the internet, there are mysql libraries out there. Infact, if you look at the topics on the first page of this forum, you'll see an SQL topic using some of these.
Sent from my iPadŽ
Depends on the database license you're using of course, and on the installation options used.Originally Posted by OnionKnight
For MS SQL look in the MSDN documentation.
And effectively (at least on Windows) there are some common libraries in ODBC, DAO, and ADO (where DAO is severely deprecated and ODBC getting to be that way).
For how to use those, see your library documentation for your compiler product.