Product Documentation

c-treeDB API for C# - Developers Guide

Previous Topic

Next Topic

CTSession.AddDatabase

Syntax

void AddDatabase (String Name, String Path)

Parameters

  • Name [in] The database name to be added to the session
  • Path [in] The database path

Description

Adds an existing database to the session.

Return

None.

Example

aSession.Logon();

try

{

aSession.AddDatabase(db_name, db_path);

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

}

catch (CTException err)

{

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

err.GetErrorMsg());

return (1);

}

See Also

CreateDatabase(), DeleteDatabase(), DropDatabase()

TOCIndex