ODBC API

As with the ADO API, you can also use ODBC to access the DB.

The description below is based on the git example code.

Object Definitions

// The object to establish the connection with
Proud::COdbcConnection conn;
// The object to set the command on
Proud::COdbcCommand cmd;
// The object to hold the query results
Proud::COdbcRecordset record;
// There is no need to use it as an object to contain query errors.
Proud::COdbcWarnings warnings;

Connecting to DB

The syntax entered as a parameter to the Open function follows the Connection Strings rules.

Using DB

- Using Query

- Using Query prepare

- Using stored procedures

- Reading data with Recordset

Last updated