|
Purpose |
Obtains current status of database. | |
|
Old name |
#define get_status db_get_status | |
|
Syntax (CCOWN) |
int db_get_status(void); | |
|
Syntax (DP4DBAPI) |
int dp4_db_get_status(DCONN * dconn); | |
|
Description |
The function db_get_status() obtains the status of the active database. The return value is one of the following values given in the header file DBFLAGS.H. | |
|
|
Value |
Meaning |
|
|
DBS_NORMAL |
Normal status (0) |
|
|
DBS_BACKUP |
The database must be backed up. |
|
|
DBS_MAKELINK |
MAKELINK needs to be run on the database |
|
|
DBS_MKLNK_REORGDB |
MAKELINK needs to be run on the database, followed by REORGDB |
|
|
DBS_SETLINK |
SETLINK needs to be run against the database. (This flag is now redundant) |
|
|
DBS_STLNK_REORGDB |
SETLINK needs to be run on the database, followed by REORGDB |
|
|
DBS_REORGDB |
REORGDB needs to be run on the database |
|
Return values |
Returns the status value | |