PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
New WINDEV and WEBDEV 27 feature!
This content has been translated automatically. Click here to view the French version.
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Rename the DNS name of the replication server if it has changed its name.
Caution: This manipulation must be done only if only the server name has been modified (the server has remained the same: configuration, database architecture, system files must be the same). In particular, the replication configuration in the HFConf.ini file must not have been modified. Example:
[REPLICATION]
PRIORITY=2
PASSWORD=XXXXX
PORT=9792
ROLE=3
SERVER_ID=2
Example
listeRS is array of hRSConfig
 
// Liste des réplications
listeRS = HRSListConfig(MaConnexion1)
FOR EACH ConfigRéplication OF listeRS
// Si la configuration doit être modifiée
ConfigRéplication.Serveur = " MonNouveauNomDeServeur:4997"
IF NOT HRSRenameServer(MaConnexion1, ConfigRéplication) THEN
Trace(HErrorInfo())
END
END
Syntax
<Result> = HRSRenameServerName(<Connection> , <Replication to be renamed>)
<Result>: Boolean
  • True if the replication was modified,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection to the master HFSQL server on which the replication configuration is to be changed. This connection corresponds to:
<Replication to be renamed>: hRSConfig variable
Name of the hRSConfig variable describing the modified replication to update.
Remarks
  • This manipulation must be done only if the server is identical, except for its DNS name (configuration, DB architecture, system files must be the same).
  • The HRSRenameServerName function does not allow you to "duplicate" or "move" a replication to another server.
  • In the case of bidirectional replication, the HRSRenameServerName function must be called on the connection corresponding to the server that has not changed its name.
  • In the case of a one-way replication, the HRSRenameServerName function must be called on the connection corresponding to the master server.
  • In one-way replication, if it is the master server that has changed its name, there is nothing to do, the modification will be done by itself.
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment