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

hCtxEssbase VB API context handle.
AppNameName 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 &).
StorageTypeThe 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

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()