# EssSetAlias

Description

EssSetAlias() sets the active alias table in the active database for a user.

Syntax

    ESS_FUNC_M  EssSetAlias (hCtx, AliasName);

ESS_HCTX_T | hCtx
ESS_STR_T | AliasName

Parameters

hCtx | Essbase API context handle.
AliasName | Name of alias table to set active.

Return Value

None.

Example

    ESS_FUNC_M
    ESS_SetAlias (ESS_HCTX_T  hCtx)
    {
       ESS_FUNC_M     sts = ESS_STS_NOERR;
       ESS_STR_T     AliasName;
       AliasName = "TestAlias";
       sts = EssSetAlias (hCtx, AliasName);

       return (sts);
    }

See Also

EssGetAlias()
EssListAliases()