ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV and WEBDEV 2025 feature!
This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / Managing replications / WLanguage functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Transforms a Spare server into an HFSQL server. This makes it possible to delete replications of a spare server so that it can be used again. For example, this function can be used in the case of a master server that becomes unreachable.
This function should only be used in a critical situation.
Note: This function is only available from version 2025 Update 1.
Example
// Delete a spare replication by identifier
arrRS_FullSpare is array of hRSConfig = HRSListConfig(gcntFullSpare_database1, hrsSubscriber)
HRSTransformSpareIntoServer(gcntFullSpare_database1, arrRS_FullSpare[1].PeerIdentifier)

// Delete spare replications from a master server
arrRS_FullSpare is array of hRSConfig = HRSListConfig(gcntFullSpare_database1, hrsSubscriber)
HRSTransformSpareIntoServer(gcntFullSpare_database1, arrRS_FullSpare[1].Server)

// Delete all replications from a spare server
HRSTransformSpareIntoServer(gcntFullSpare_database1)
Syntax
<Result> = HRSTransformSpareIntoServer(<Connection> [, <Replication to delete>])
<Result>: Boolean
  • True if deleted successfully,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection to the HFSQL spare server. This connection corresponds to:
<Replication to delete>: Optional integer or character string
  • Identifier of replication to delete. This identifier corresponds to the PeerIdentifier property of the hRSConfig variable describing the replication.
  • Name of the master server for which the spare replications are to be deleted.
If this parameter is not specified, all spare replications will be deleted.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/14/2025

Send a report | Local help