Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTSession::AddDatabase

Syntax

void AddDatabase (const CTString& Name, const CTString& 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


pSession->Logon();

try

{

pSession->AddDatabase(db_name, db_path);

printf("\nDatabase added succesfully!!");

}

catch (CTException& err)

{

printf("\n\n%d %s",err.GetErrorCode(),

err.GetErrorMsg());

return (1);

}


See also

CreateDatabase(), DeleteDatabase(), DropDatabase()

TOCIndex