Replicates all data cells that are identified in the replication partition from the source database to the selected target database.
Syntax
ESS_FUNC_M EssPartitionGetReplCells (hCtx, pReplicatePartition);
Parameter | Data Type | Description |
---|---|---|
hCtx | ESS_HCTX_T | API context handle. |
pReplicatePartition | ESS_PART_REPL_T | Partition information. |
Return Value
Returns zero if successful; error code if unsuccessful.
Access
A call to this function requires database designer access privileges.
Example
ESS_FUNC_M Ess_PartitionGetReplCells(ESS_HCTX_T hCtx) { ESS_FUNC_M sts; ESS_PART_REPL_T ReplicatePartition; ESS_PART_CONNECT_INFO_T HostDatabase; memset(&ReplicatePartition, 0, sizeof(ESS_PART_REPL_T)); memset(&HostDatabase, 0, sizeof(ESS_PART_CONNECT_INFO_T)); ReplicatePartition.pHostDatabase = &HostDatabase; ReplicatePartition.lPartitionCount = -1; ReplicatePartition.bUpdatedOnly = ESS_FALSE; sts = EssPartitionGetReplCells(hCtx, &ReplicatePartition); printf("EssPartitionGetReplCells sts: %ld\n",sts); return(sts); }
See Also