Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTDatabase.AddTable

Syntax

void AddTable( String Name, String Path)

Parameters

  • Name [in] - The name of the table to add to the database.
  • Path [in] - The table path to add to the database.

Description

Adds an existing table to the database. It is possible to add FairCom DB files to an existing database if this file has the incremental and DODA structures stored. See Compatibility 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

ADatabase.Connect();

try

{

ADatabase.AddTable(my_old_c-tree_file, path);

Console.Write("\nTable added succesfully!!");

}

catch (CTException err)

{

Console.Write("\n\n{0} {1}",err.GetErrorCode(), err.GetErrorMsg());

return (1);

}

See Also

CreateTable(), DeleteTable(), DropTable()

TOCIndex