# EssArchiveEnd

Description

EssArchiveEnd() restores the server to "read-write" mode after archiving is complete.

Syntax

    ESS_FUNC_M EssArchiveEnd (hCtx, AppName, DbName);

ESS_HCTX_T | hCtx
ESS_STR_T | AppName
ESS_STR_T | DbName

Parameters

hCtx | Essbase API context handle.
AppName | Name of archived application.
DbName | Name of archived database.

Return Value

None.

Notes

- After calling EssArchiveBegin(), a call to EssArchiveEnd() is required to restore Read-Write mode.

Access

The caller must have at least read access (ESS_PRIV_READ) to the database, and must select it as the active database using EssSetActive().

Example

    ESS_FUNC_M
    ESS_ArchiveEnd(ESS_HCTX_T hCtx)
    {
       ESS_FUNC_M      sts = ESS_STS_NOERR;
       ESS_STR_T    AppName;
       ESS_STR_T    DbName;
       AppName  = "Sample";
       DbName   = "Basic";

       /* End Archive */
       sts = EssArchiveEnd(hCtx, AppName, DbName);
       return (sts);
    }

See Also

EssArchiveBegin()
EssRestore()