It depends on the operating system you are using, and sometimes the database. In MS-Windows, the most common way of accessing databases is through the ODBC driver. You can use raw ODBC API functions or one of the serveral free c++ classes found by searching google
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343