EsbQueryDatabaseMembers

Performs a report-style query to list a selection of database member information.

Syntax

EsbQueryDatabaseMembers (hCtx, mbrQuery)
ByVal hCtx     As Long
ByVal mbrQuery As String
ParameterDescription

hCtx

VB API context handle.

mbrQuery

Member query string. A query string is a command similar to a report specification. For descriptions of report specifications refer to the Oracle Essbase Technical Reference. Valid query strings are listed in Notes, below. String must be less than 64 KB in length.

Notes

Return Value

None.

Access

This function requires the caller to have access to the database, and to have selected it as their active database using EsbSetActive().

Example

Declare Function EsbQueryDatabaseMembers Lib "ESBAPIN" (ByVal hCtx As Long, ByVal Query As String) As Long

Sub ESB_QueryDatabaseMembers ()
   Dim sts As Long
   Dim Query As String 
   Const szMString = 256
   Dim MString As String * szMString
   Query = "<ALLINSAMEDIM"    '***********************
   ' Query Database members 
   '***********************
   sts = EsbQueryDatabaseMembers (hCtx, Query)    '**********************
   ' Print out all strings
   '**********************
   If sts = 0 Then 
     sts = EsbGetString (hCtx, MString,
           szMString) 
     Do While Mid$(MString, 1, 1) <> Chr$(0) 
       Print MString 
       sts = EsbGetString (hCtx, MString,
             szMString)
     Loop 
   End If 
End Sub 

See Also