EsbDeleteDatabase() deletes an existing database from an application, either on the client or the server. If the database is running on the server, then it is first stopped.
EsbDeleteDatabase (hCtx, AppName, DbName)
ByVal hCtx As Long ByVal AppName As String ByVal DbName As String
hCtx | Essbase VB API context handle. |
AppName | Name of an application containing database. |
DbName | Name of a database to delete. |
Declare Function EsbDeleteDatabase Lib "ESBAPIW" (ByVal hCtx As Long, ByVal AppName As String, ByVal DbName As String) As Long Sub ESB_DeleteDatabase () Dim sts As Long Dim AppName As String Dim DbName As String AppName = "Sample" DbName = "Basic" '**************** ' Delete database '**************** sts = EsbDeleteDatabase (hCtx, AppName, DbName) End SubEsbDeleteApplication()