FairCom Corporation


4.6.2.3 CTDatabase::AddTable


Syntax

void AddTable(const CTString& Name, const CTString& Path)

Parameters

Description

Adds an existing table to the database. It is possible to add c-tree Plus files to an existing database if this file has the incremental and DODA structures stored. See Section 3.8 "Compatibility" on page 3-90 regarding compatibility issues.

A table that has been created independent from a database, or in a different database may also be added to the current database.

Return

None.

Example

pDatabase->Connect();
try
{
pDatabase->AddTable(my_old_c-tree_file, path);
printf("\nTable added succesfully!!");
}
catch (CTException& err)
{
printf("\n\n%d %s",err.GetErrorCode(),
err.GetErrorMsg());
return (1);
}

See Also

DropTable, DeleteTable, CreateTable


FairCom Corporation
www.faircom.com