# EsbLoadDatabase

Description

EsbLoadDatabase() starts a database within an application on the server.

Syntax

    EsbLoadDatabase (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 load.

Return Value

None.

Access

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

Example

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

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

       AppName = "Sample"
       DbName = "Basic"

       '**************
       ' Load Database
       '**************
       sts = EsbLoadDatabase (hCtx, AppName, DbName)
    End Sub

See Also

EsbLoadApplication()
EsbUnloadDatabase()