Previous Topic

Next Topic

Adding an existing table

An existing table may be added or imported to a database by calling the CTDatabase::AddTable() method. CTDatabase:AddTable() takes as parameters the table name and the table path.

// add MyTable to the current database
try
{
   ADatabase.AddTable(“MyTable”, “”);
}
catch (CTException &err)
{
   printf(“Add table failed with error %d\n”, err.GetErrorCode());
}