ICubeMetaUpdateEx.Load

Syntax

Load(FileName: String);

Parameters

FileName. Name of the file from which the time series database is to be loaded. The parameter value must include path and name of the ZIP file that contains data of the time series database.

Description

The Load method loads a time series database from file.

Comments

If a time series database is copied from one repository to another, the MDM dictionaries in the consumer repository must be the clones of the initial repository's dictionaries.

Example

Executing the example requires an MDM repository with the RDS_REPO identifier and the C:\Replication file that contains a copy of the time series database.

Sub UserProc;
Var
    Mb: IMetabase;
    RubUpdateEx: ICubeMetaUpdateEx;
    CrInfo: IMetabaseObjectCreateInfo;
    s: string;
Begin
    Mb := MetabaseClass.Active;
    RubUpdateEx := New CubeMetaUpdateClass.Create;
    RubUpdateEx.Metabase := Mb;
    CrInfo := RubUpdateEx.CreateInfo;
    CrInfo.Parent := Mb.Root;
    s := Mb.GenerateId("FC_COPY");
    CrInfo.Id := s;
    CrInfo.Name := s;
    RubUpdateEx.RdsDatabase := Mb.ItemById("RDS_REPO").Bind As IRdsDatabase;
    RubUpdateEx.Load("C:\Replication.zip");
    RubUpdateEx.Apply(Null);
End Sub UserProc;

After executing the example time series database with the FC_COPY identifier is loaded in the repository root from the C:\Replication file.

See also:

ICubeMetaUpdateEx