CTSession::AddDatabase
Syntax
void AddDatabase (const CTString& Name, const CTString& Path)
Parameters
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()