IAutoCube.Database

Syntax

Database: IDatabase;

Description

The Database property determines a database where cube data is stored.

Example

Executing the example requires that the repository contains an automatic cube with the AUTO_CUBE identifier.

Sub Main;

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 Main;

After executing the example name of database that stores data of automatic cube with the AUTO_CUBE identifier is displayed in the console window.

See also:

IAutoCube