A database is a collection of tables and a session may contain several different databases. A database object is required before any table or data operations may take place. The following are typical operations performed on a database:
Create a database object
Connect to a database by calling CTDatabase::Connect()
Perform table, index, field and record operations
When you are done with the database, disconnect by calling CTDatabase::Disconnect()
Destroy the database object if it was created with the new operator