# EsbUnloadApplication

Description

EsbUnloadApplication() stops an application on the server.

Syntax

    EsbUnloadApplication (hCtx, AppName)

    ByVal hCtx    As Long
    ByVal AppName As String

Parameters

hCtx | Essbase VB API context handle.
AppName | Name of an application to unload.

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 (ESB_PRIV_APPLOAD) for the specified application.

Example

    Declare Function EsbUnloadApplication Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String) As Long

    Sub ESB_UnloadApplication ()
       Dim sts As Long
       Dim AppName As String

       AppName = "Sample"

       '*****************
       ' Unload Application
       '*****************
       sts = EsbUnloadApplication (hCtx, AppName)
    End Sub

See Also

EsbLoadApplication()
EsbUnloadDatabase()