EssPartitionPutReplCells

Replicates all data cells that are identified in the replication partition from the selected source database to the target database.

Syntax

ESS_FUNC_M EssPartitionPutReplCells (hCtx, pReplicatePartition);
ParameterData TypeDescription

hCtx

ESS_HCTX_T

API context handle.

pReplicatePartition

ESS_PPART_REPL_T

Partition information.

Notes

This routine removes the file if it's empty after purging.

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_PartitionPutReplCells(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 = EssPartitionPutReplCells(hCtx, &ReplicatePartition);
   printf("EssPartitionPutReplCells  sts: %ld\n",sts);
   
   return(sts);
}

See Also