Replicates all data cells that are identified in the replication partition from the source database to the selected target database.
Syntax
EsbPartitionGetReplCells (hCtx, ReplicatedRegion, HostAppDbList) ByVal hCtx As Long ReplicatedRegion As ESB_PART_REPL_T ByVal HostAppDbList As String
| Parameter | Description |
|---|---|
hCtx | API context handle. |
ReplicatePartition | Partition information. |
HostAppDbList | A string of server, application, and database sets delimited by CR/LF. |
Return Value
Returns zero if successful; error code if unsuccessful.
Access
A call to this function requires Database Manager access privileges.
Example
Public Sub ESB_PartitionGetReplCells() Dim ReplPartition As ESB_PART_REPL_T
Dim HostAppDbList As String
Dim ProcState As ESB_PROCSTATE_T
Dim ind, i As Long
ReplPartition.PartitionCount = -1 'All areas
ReplPartition.UpdatedOnly = 0 'Updated only cells
HostAppDbList = "localhost" & vbCrLf & _
"Sampeast" & vbCrLf & _
"East"
sts = EsbPartitionGetReplCells(hCtx, ReplPartition, HostAppDbList)
If sts = 0 Then
sts = EsbGetProcessState(hCtx, ProcState)
Do Until ProcState.State = ESB_STATE_DONE
sts = EsbGetProcessState(hCtx, ProcState)
Loop
End If
End SubSee Also