Class ODBPP::DatabaseMember

Used to list all the tables within a database.
class DatabaseMember{
public:
   unsigned int tableID;
   unsigned int tableLockOrder;
   char16_t *tableName;
};

Members

tableIDthe table's identifier.
tableLockOrderthe position that this table is in the global locking order.
tableName'' terminating string for the table name.

Remarks

Example Use
  • C++
#include "ODBPP.h"

int wmain(int argc, wchar_t* argv[])
{
   unsigned __int64 error;
   const char16_t *message;
   CODBPP database;
   CODBPP::DatabaseMembers *members;
   unsigned int count;
   if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR
   && (error = database.BeginTransaction()) == NO_ERROR
   && (error = database.GetDatabaseMembers(NULL,&count)) == NO_ERROR){
      members = (CODBPP::DatabaseMembers*) new BYTE[count];
      if((error = database.GetDatabaseMembers(members,&count)) == NO_ERROR){
         for(int i = 0; i < count; i++) MessageBox(members[i].tableName);
      }
      delete [] (LPBYTE)members;
   }
   if(error && database.GetErrorMessage(&message) == NO_ERROR)
      MessageBox(message);
   database.CloseDatabase();
   return NO_ERROR;
}

Also See

GetDatabaseMembers
Listen All
Comments (0)
Characters left: 2500
 

Contact Ekky

Thanks for your interest.

Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript