Database: IDatabase;
The Database property determines a database where cube data is stored.
Executing the example requires that the repository contains an automatic cube with AUTO_CUBE identifier.
Sub UserProc;
Var
MB: IMetabase;
AutoCub: IAutoCube;
DB: IDatabase;
Begin
MB := MetabaseClass.Active;
AutoCub := MB.ItemById("AUTO_CUBE").Bind As IAutoCube;
DB := AutoCub.Database;
Debug.WriteLine((DB As IMetabaseObjectDescriptor).Name);
End Sub UserProc;
After executing the example the development environment console displays name of the database that stores automatic cube data.
See also: