This example opens and then closes a database and a table-type Recordset object for the Customers table in the database.
CdbDBEngine dbeng;
CdbDatabase dbsdb;
CdbRecordset dbrs;
dbsdb = dbeng.OpenDatabase(_T("Northwind.mdb"));
dbrs = dbsdb.OpenRecordset(_T("Customers"));
dbrs.Close();
dbsdb.Close();