List all collections

Call the JagGetCollectionList routine to retrieve a list of all the collection names on the server. The server returns a JagNameList structure. This routine can be called in conjunction with administering EAServer. Call the JagFreeCollectionList routine to free the memory allocated for the JagNameList structure.

The JagGetCollectionList routine returns a reference to a JagNameList structure that includes all the collection names defined in EAServer. The JagNameList structure is:

typedef struct _jagnamelist
{
    SQLINT            num_names;
    SQLPOINTER            *names;
} JagNameList;

where:

num_names is the number of array elements.

*names is an array of num_names elements; each element points to a null-terminated collection name.