SetDatabaseParameter

SetDatabaseParameter primes the database to a usable state.
unsigned __int64 SetDatabaseParameter (
   enum CODBPP::Parameter parameter,
   __int64 value
);

Parameters

parametervaild parameter include CODBPP::CYCLICAL_LOGGING or CODBPP::CYCLICAL_LOG_SIZE.
valuethe value to update the setting

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

  • This method require the database to be in CODBPP::EXCLUSIVE mode before being able to complete.
Example Use
  • C++
#include "ODBPP.h"

int wmain(int argc, wchar_t* argv[])
{
   unsigned __int64 error;
   const char16_t *message;
   CODBPP database;
   if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR){
      if((error = database.BeginTransaction(CODBPP::EXCLUSIVE)) == NO_ERROR){
         if((error = database.SetDatabaseParameter(
                               CODBPP::CYCLICAL_LOGGING, 1)) == NO_ERROR){
            ...
          }
      }
      if(error && database.GetErrorMessage(&message) == NO_ERROR)
         MessageBox(message);
   }
   database.CloseDatabase();
   return NO_ERROR;
}

Since

Version 4.5

Also See

GetDatabaseParameter
Listen All
Comments (0)
Characters left: 2500
 
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript