EsbCreateStorageTypedApplication

Creates a new application with the option of data storage mode: block (multidimensional) or aggregate.

Syntax

EsbCreateStorageTypedApplication (hCtx, AppName, StorageType)
ByVal hCtx    As Long
ByVal AppName As String
ByVal StorageType As Integer 
ParameterDescription

hCtx

VB API context handle.

AppName

Name of application to create. See Application Name Limits.

StorageType

The data storage type of the new application.

The valid values for StorageType are:

  • ESB_DEFAULT_DATA_STORAGE

  • ESB_MULTIDIM_DATA_STORAGE—Block storage (multidimensional), the default storage type

  • ESB_ASO_DATA_STORAGE—Aggregate storage

Notes

Return Value

None.

Access

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

Example

Declare Function EsbCreateStorageTypedApplication Lib "ESBAPIN" (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