EssValidateDB

Checks the database for data integrity.

Syntax

ESS_FUNC_M EssValidateDB (hCtx, DbName, FileName);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

DbName

ESS_STR_T

Database name. Required, cannot be NULL.

FileName

ESS_STR_T

Error log file name, to be placed in the app\db directory on the server. Required.

Notes

Return Value

None.

Access

This function requires the caller to have database designer privilege (ESS_PRIV_DBDESIGN) for the specified database.

Example

ESS_VOID_T 
ESS_ValidateDB (ESS_HCTX_T hCtx)
{
   ESS_FUNC_M        sts = ESS_STS_NOERR;  
   ESS_STR_T        DbName;
   ESS_STR_T        FileName;  
   ESS_PROCSTATE_T  pState; 
   
   DbName   = "Basic";
   FileName =   
    "D:\\AnalyticServices\\app\\sample\\basic\\Validate.lst";
   
   sts = EssValidateDB (hCtx, DbName, FileName);
   
   if (!sts)
   {
      sts = EssGetProcessState (hCtx, &pState);
      while (!sts && (pState.State !=
              ESS_STATE_DONE))
        sts = EssGetProcessState (hCtx, &pState);      
   }
}

See Also