Previous Topic

Next Topic

Find Active Database by UID

ctdbFindActiveDatabaseByUID() locates an active database given its UID number and returns the database handle. The following example shows how to check if a database is active using its UID number.

/* check if database is active, by UID */
CTBOOL IsActiveDatabaseByUID(CTHANDLE hSession, ULONG uid)
{
   return (ctdbFindActiveDatabaseByUID(hSession, uid) != NULL) ? YES : NO;
}