GetDatabaseParameter
GetDatabaseParameter primes the database to a usable state.unsigned __int64 GetDatabaseParameter ( enum CODBPP::Parameter parameter, __int64 *value );
Parameters
parameter | vaild parameter include CODBPP::CYCLICAL_LOGGING or CODBPP::CYCLICAL_LOG_SIZE. |
value | the returning value |
Return Values
If the method succeeds, the return value is zero else see error codes for more details.Remarks
- This method is read only and does not require a transaction to have been started.
Example Use
- C++
#include "ODBPP.h" int wmain(int argc, wchar_t* argv[]) { unsigned __int64 error; __int64 value; const char16_t *message; CODBPP database; if((error = database.OpenDatabase(u"YourDatabase")) == NO_ERROR){ if((error = database.GetDatabaseParameter( CODBPP::CYCLICAL_LOGGING, &value)) == NO_ERROR){ ... } if(error && database.GetErrorMessage(&message) == NO_ERROR) MessageBox(message); } database.CloseDatabase(); return NO_ERROR; }
Since
Version 4.5
Also See
SetDatabaseParameterListen All
Comments (0)