ADO API

The ADO Wrapper API in ProudNet DB is an API designed to easily handle Microsoft ActiveX Data Object (ADO) in C++ language, making it easier to access DBMS using ADO.

The code below is illustrated based on the git example project.

Connecting to DB

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

Proud::CAdoConnection conn;

// MSSQL
conn.Open(L"Driver={ODBC Driver 17 for SQL Server};Server=localhost;Database=ProudAdo-Test;Trusted_Connection=yes;");
// MYSQL
conn.Open(L"Driver={MySQL ODBC 8.0 Unicode Driver};Server=127.0.0.1;Port=3306;Database=proudado-test;User ID=proud;Password=proudnet123;Option=3;", Proud::DbmsType::MySql);

Using DB

- Using Query directly

- Using stored procedures

- Reading CAdoRecordset Data

Last updated