# EssUnloadApplication

Description

EssUnloadApplication() stops an application on the server.

Syntax

    ESS_FUNC_M  EssUnloadApplication (hCtx, AppName);

ESS_HCTX_T | hCtx
ESS_STR_T | AppName

Parameters

hCtx | Essbase API context handle
AppName | Name of application to load

Return Value

None.

Notes

To unload an application, the connected user must have load access to the application. An application cannot be unloaded if Essbase is restructuring a database associated with the application.

Access

This function requires the caller to have Application Load/Unload privilege (ESS_PRIV_APPLOAD) for the specified application.

Example

    ESS_FUNC_M
    ESS_UnloadApplication (ESS_HCTX_T hCtx)
    {
       ESS_FUNC_M    sts = ESS_STS_NOERR;
       ESS_STR_T    AppName;

       AppName = "Sample";
       sts = EssUnloadApplication(hCtx, AppName);

       return (sts);
    }

See Also

EssLoadApplication()
EssUnloadDatabase()