PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HRecreateSubscriberReplica (Function)
In french: HRecréeRéplicaAbonné
ODBCOLE DBNot available with these kinds of connection
Recreates the description file of a subscriber replica (universal replication only) according to the information of the master replica (.RPM and .SYN files). The master replica must be accessible (via network or UNC).
The replicated files and the range of automatic identifiers used by the initial subscriber are also used by the created subscriber.
Remark: The replication is not available when accessing a database via Remote access.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 22
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Linux This function is now available for WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
// Re-create the subscriber
HRecreateSubscriberReplica("", "", "Subscriber1")
Syntax
<Result> = HRecreateSubscriberReplica(<Directory of master replica> , <Directory of subscriber replica> , <Identifier> [, <Automatic modification>])
<Result>: Integer
Identifier of the subscriber replica that was created, 0 if no subscriber replica was created.
<Directory of master replica>: Character string (with quotes)
Directory where the description file of Master Replica (RPM file) was created (HCreateMasterReplica). This directory can be a network directory or a UNC path.
If this parameter corresponds to an empty string (""), the description file will be sought in the current directory of HFSQL files (defined in the data model editor or by programming).
Caution: this directory must be accessible when running HRecreateSubscriberReplica.
<Directory of subscriber replica>: Character string (with quotes)
Directory where the description file of Subscriber Replica must be created. This file is named Replica_<Identifier>.RPL.
If this parameter corresponds to an empty string (""), the description file will be created in the current directory of HFSQL data files (defined in the data model editor or by programming).
<Identifier>: Integer or character string
Identifier of subscriber replica. This identifier will be used by HCreateMoveableReplica.
A WLanguage error occurs if the specified identifier already exists. This parameter must not correspond to an empty string ("").
<Automatic modification>: Boolean
Versions 25 and later
  • True to take into account the automatic data modification. In this case:
    • Changes in the structure of the master database will be carried over to the subscriber database.
    • The new items will be taken into account by the replication.
  • False (default value). The automatic data modification performed on the master database is not carried over to the subscriber database.
Caution:
  • For existing replications, it is necessary to recreate a replication (as well as the subscribers) to implement this mechanism.
  • This mechanism does not work if a unique key is added or deleted.
  • This parameter is only available for replication between HFSQL databases (Classic or Client/Server).
New in version 25
  • True to take into account the automatic data modification. In this case:
    • Changes in the structure of the master database will be carried over to the subscriber database.
    • The new items will be taken into account by the replication.
  • False (default value). The automatic data modification performed on the master database is not carried over to the subscriber database.
Caution:
  • For existing replications, it is necessary to recreate a replication (as well as the subscribers) to implement this mechanism.
  • This mechanism does not work if a unique key is added or deleted.
  • This parameter is only available for replication between HFSQL databases (Classic or Client/Server).
  • True to take into account the automatic data modification. In this case:
    • Changes in the structure of the master database will be carried over to the subscriber database.
    • The new items will be taken into account by the replication.
  • False (default value). The automatic data modification performed on the master database is not carried over to the subscriber database.
Caution:
  • For existing replications, it is necessary to recreate a replication (as well as the subscribers) to implement this mechanism.
  • This mechanism does not work if a unique key is added or deleted.
  • This parameter is only available for replication between HFSQL databases (Classic or Client/Server).
Business / UI classification : Business Logic
Component : wd250rpl.dll
Minimum version required
  • Version 10
This page is also available for…
Comments
Click [Add] to post a comment