Databases: IStringList;
The Databases method extracts a list of names of all available server databases, with which ADOMD directory is set up to work with.
Executing the example requires that the repository contains an ADOMD catalog with the ADOMDTest identifier.
Sub UserProc;
Var
MB: IMetabase;
Catalog: IAdoMdCatalogInstance;
Connection: IAdoMdConnection;
DB: IStringList;
s: String;
Begin
MB := MetabaseClass.Active;
Catalog := MB.ItemById("ADOMDTest").Open(Null) As IAdoMdCatalogInstance;
Connection := Catalog.Connection;
DB := Connection.Databases;
For Each s In DB Do
Debug.WriteLine(s);
End For;
End Sub UserProc;
On executing the example the development environment console displays a list of databases created on the server, to which ADOMD directory is set up.
See also: