EsbCreateDatabase() creates a new database within an application, either on the client or the server. If the database is created on the server, it is also started.
EsbCreateDatabase (hCtx, AppName, DbName, DbType)
ByVal hCtx As Long ByVal AppName As String ByVal DbName As String ByVal DbType As Integer
hCtx | Essbase VB API context handle. |
AppName | Name of an application to contain database. |
DbName | Name of a database to create. |
DbType | Type of database to create: (ESB_DBTYPE_NORMAL/ESB_DBTYPE_CURRENCY). |
Declare Function EsbCreateDatabase Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String, ByVal DbName As String, ByVal DbType As Integer) As Long Sub ESB_CreateDatabase () Dim sts As Long Dim AppName As String Dim DbName As String AppName = "Sample" DbName = "Basic" '**************** ' Create database '**************** sts = EsbCreateDatabase (hCtx, AppName, DbName, ESB_DBTYPE_NORMAL) End SubEsbCreateApplication()