EssArchiveBegin() prepares the server for archiving by changing server mode to Read-Only.
ESS_FUNC_M EssArchiveBegin (hCtx, AppName, DbName, FileName);
| ESS_HCTX_T | hCtx |
| ESS_STR_T | AppName |
| ESS_STR_T | DbName |
| ESS_STR_T | FileName |
| hCtx | Essbase API context handle |
| AppName | Name of application to archive |
| DbName | Name of database to archive |
| FileName | Name of file to contain archive information |
None.
The caller must have at least read access (ESS_PRIV_READ) to the database, and must select it as the active database using EssSetActive().
ESS_FUNC_M
ESS_ArchiveBegin(ESS_HCTX_T hCtx)
{
ESS_FUNC_M sts = ESS_STS_NOERR;
ESS_STR_T AppName;
ESS_STR_T DbName;
ESS_STR_T FileName;
AppName = "Sample";
DbName = "Basic";
FileName = "Test.arc";
/* Begin Archive */
sts = EssArchiveBegin(hCtx, AppName, DbName,
FileName);
return (sts);
}