This example opens the specified database and sets the QueryTimeout property to 120 seconds.
CdbDBEngine   dbeng;
CdbDatabase   dbsNorthwind;
dbsNorthwind = dbeng.OpenDatabase(_T("Northwind.mdb"));
dbsNorthwind.SetQueryTimeout(120);
dbsNorthwind.Close();