EssResetDatabase() clears all loaded data and resets the outline to be empty in the active database.
ESS_FUNC_M EssResetDatabase (hCtx);
| ESS_HCTX_T | hCtx |
| hCtx | Essbase API context handle. |
None.
This function requires that the caller have Write privilege (ESS_PRIV_WRITE) for the database, and to select it as the active database using EssSetActive().
ESS_FUNC_M
ESS_ResetDb (ESS_HCTX_T hCtx)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_PROCSTATE_T pState;
sts = EssResetDatabase(hCtx);
if (!sts)
{
sts = EssGetProcessState (hCtx, &pState);
while(!sts || (pState.State != ESS_STATE_DONE))
sts = EssGetProcessState (hCtx, &pState);
}
return (sts);
}