EssEndDataload() marks the end of an update specification being sent to the active database, and must be called after sending the update specification using EssSendString().
ESS_STS_T EssEndDataload (hCtx, ppMbrError);
| ESS_HCTX_T | hCtx; |
| ESS_PPMBRERR_T | ppMbrError; |
| hCtx | Essbase API context handle. |
| ppMbrError | Pointer to the linked list of errors contained in
ESS_MBRERR_T. Possible errors (and error strings) are:
|
Returns zero, if successful. Otherwise, returns an error code, as follows:
ESS_STS_T sts = ESS_STS_NOERR;
ESS_BOOL_T Store;
ESS_BOOL_T Unlock;
ESS_STR_T Query1, Query2;
ESS_PMBRERR_T pMbrErr;
Store = ESS_TRUE;
Unlock = ESS_FALSE;
Query1 = "Year Market Scenario Measures Product 12345";
Query2 = " Jan East Scenario Measures Coke 125";
/* Begin Update */
sts = EssBeginDataload (hCtx, Store, Unlock, ESS_FALSE, ESS_NULL);
/* Send update specification */
if(!sts)
sts = EssSendString(hCtx, Query1);
sts = EssSendString(hCtx, Query2);
/* End Update */
if(!sts)
sts = EssEndDataload(hCtx, &pMbrErr);
EssBeginDataload()