# EsbUnloadDatabase

Description

EsbUnloadDatabase() stops a database within an application on the server.

Syntax

    EsbUnloadDatabase (hCtx, AppName, DbName)

    ByVal hCtx    As Long
    ByVal AppName As String
    ByVal DbName  As String

Parameters

hCtx | Essbase VB API context handle.
AppName | Application name.
DbName | Name of a database to unload.

Return Value

None.

Access

This function requires the caller to have Database Load/Unload privilege (ESB_PRIV_APPLOAD).

Example

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

    Sub ESB_UnloadDatabase ()
       Dim sts As Long
       Dim AppName As String
       Dim DbName As String

       AppName = "Sample"
       DbName = "Basic"

       '****************
       ' Unload Database
       '****************
       sts = EsbUnloadDatabase (hCtx, AppName, DbName)
    End Sub

See Also

EsbLoadDatabase()