# EsbPartitionResetOtlChangeTime

Description

EsbPartitionResetOtlChangeTime() takes the last change time from the source partition and assigns it as a last metadata change time of a destination partition.

Syntax

    EsbPartitionResetOtlChangeTime (hCtx, pSourceRegion, pDestRegion)

    ByVal hCtx          As Long
          pSourceRegion As ESB_PART_DEFINED_T
          pDestRegion   As ESB_PART_DEFINED_T

Parameters

hCtx | Essbase API context handle.
pSourceRegion | Partition for the new time.
pDestRegion | Partition where the time is reset.

Return Value

Returns zero if successful; error code if unsuccessful.

Notes

- The source partition refers to a partition that provides a time stamp, and a target partition refers to a partition which receives the time stamp.
- A source partition does not have to be either a data source partition or an outline source partition.

Access

A call to this function requires database designer access privileges.

Example

    Public Sub ESB_PartitionResetOtlChangeTime()

       Dim SourcePartition As ESB_PART_DEFINED_T
       Dim DestPartition As ESB_PART_DEFINED_T

       SourcePartition.usType = ESB_PARTITION_OP_REPLICATED
       DestPartition.usType = ESB_PARTITION_OP_REPLICATED

       SourcePartition.Direction = ESB_PARTITION_DATA_SOURCE
       DestPartition.Direction = ESB_PARTITION_DATA_TARGET

       SourcePartition.HostDatabase.HostName = "Dscharton2"
       DestPartition.HostDatabase.HostName = "Dscharton2"

       SourcePartition.HostDatabase.AppName = "Sampeast"
       DestPartition.HostDatabase.AppName = "East"

       SourcePartition.HostDatabase.DbName = "Samppart"
       DestPartition.HostDatabase.DbName = "Company"

       sts = EsbPartitionResetOtlChangeTime(hCtx, _
                SourcePartition, DestPartition)

    End Sub

See Also

Constant and Structure Definitions for Partitions
EsbPartitionApplyOtlChangeFile()
EsbPartitionGetAreaCellCount()
EsbPartitionGetList()
EsbPartitionGetOtlChanges()
EsbPartitionGetReplCells()
EsbPartitionPurgeOtlChangeFile()
EsbPartitionPutReplCells()