Creates the description file of a Master Replica (
logged replication or universal replication)). The extension of the corresponding file is ".RPM".
The description file of a Master Replica contains the list of Subscriber Replicas with their date of last synchronization. This file is empty when it is created. You must call
HCreateSubscriberReplica to initialize this file.
Remark: This function is automatically called during the setup phase of the application that manages the replication.
Note: The replication is not available when accessing a database via
Remote access.
Syntax
<Result> = HCreateMasterReplica([<Directory of master replica>])
<Result>: Boolean
- True if the master replica was created,
- False otherwise (the file already exists in the specified directory for example).
<Directory of master replica>: Optional character string
Directory where the description file of Master Replica must be created. This directory must be accessible when HCreateMasterReplica is used.
If this parameter:- is not specified or corresponds to an empty string: the MasterReplica.RPM file is created in the directory specified in the analysis (RPL subdirectory of the data files by default). For the universal replication, if this parameter is not specified or if it corresponds to an empty string (""), the file is created in the current directory.
- corresponds to a name of directory (network or UNC directory): the MasterReplica.RPM file is created in the specified directory.
Example: HCreateMasterReplica("C:\Temp") creates the ReplicaMaître.RPM file in the C:\Temp directory. - has the <Directory>\<FileName>.RPM format: the <FileName>.RPM file is created in the specified directory.
Example: HCreateMasterReplica("C:\Temp\Paris.RPM") creates the Paris.RPM file in the C:\Temp directory.
Business / UI classification: Business Logic