# EsbCreateStorageTypedApplication

Description

EsbCreateStorageTypedApplication() creates a new application with the option of data storage in Multidimensional or Aggregate Storage mode. Refer also to EsbCreateApplication().

Syntax

    EsbCreateStorageTypedApplication (hCtx, AppName, StorageType)

    ByVal hCtx    As Long
    ByVal AppName As String
    ByVal StorageType As Integer

Parameters

hCtx | Essbase VB API context handle.
AppName | Name of application to create. Application names can be 8 characters long, and can contain all special characters allowed in DOS file names. No spaces, commas, tabs, slashes, backslashes, or periods are allowed. The use of some special characters is not recommended because they are often used by the operating system (for example, @, $, %, and &).
StorageType | The data storage type of the new application. The valid values for StorageType are : ESB_DEFAULT_DATA_STORAGE ESB_MULTIDIM_DATA_STORAGE - Multi-Dimensional, the default storage type ESB_ASO_DATA_STORAGE - Aggregate Storage

Return Value

None.

Notes

- The new application is created in non-Unicode mode. Unicode mode is not supported for Aggregate Storage applications.
- Creating a client application creates a directory to contain local application files.
- A newly created database or application is not automatically set to active. Call EsbSetActive() after calling EsbCreateDatabase(), EsbCreateApplication(), or EsbCreateStorageTypedApplication() to keep subsequent functions, such as EsbRestructure(), from operating on the wrong database or application (the application or database that is already active).

Access

For a server application, the caller must have application Create/Delete/Edit privilege (ESB_PRIV_APPCREATE).

Example

    Declare Function EsbCreateStorageTypedApplication Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String, ByVal StorageType As Integer) As Long

    Sub ESB_CreateStorageTypedApplication ()
       Dim sts As Long
       Dim AppName As String
       Dim StorageType as Integer

       AppName = "Sample"

       '*******************
       ' Create Storage Typed Application
       '*******************
       sts = EsbCreateStorageTypedApplication (hCtx, AppName, StorageType)
    End Sub

See Also

EsbCreateApplication
EsbCreateDatabase()
EsbCreateObject()
EsbGetApplicationInfo()