ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Deletes a replication between two HFSQL servers. This function must be run on a replication's master HFSQL server, or on an orphaned subscriber server.
Example
Cnx is Connection
...
HRSDeleteConfig(Cnx, ConfigRéplication1)
Syntax

Deleting a replication identified by a hHRSConfig variable Hide the details

<Result> = HRSDeleteConfig(<Connection> , <Replication to delete> [, <Type of deletion>])
<Result>: Boolean
  • True if the replication was deleted,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection to the HFSQL server on which the replication is performed. This connection corresponds to:
<Replication to delete>: hRSConfig variable
Name of the hRSConfig variable describing the replication to delete.
<Type of deletion>: Optional Integer constant
Type of replication to delete:
hrsDefault
(default value)
Deletes the replication only if the subscriber server is accessible.
hrsIgnoreSubscriberForces the deletion even if the other server cannot be contacted. In this case:
  • the information regarding the replication will not be deleted from the subscriber server.
  • for a bidirectional replication, the replication will not be deleted from the other server. We advise you to perform this deletion from this server as well to avoid a useless memory consumption.
hrsSubscriberForces the deletion of an orphan replication on the subscriber side. In this case, the hRSConfig variable can be retrieved by HRSListConfig associated with the hrsSubscriber constant.
Note: Before version 190040, this parameter corresponded to a Boolean (True equivalent to the constant hrsIgnoreAbonné and False equivalent to the constant hrsDéfaut)..

Deleting a replication identified by its identifier Hide the details

<Result> = HRSDeleteConfig(<Connection> , <Identifier> [, <Forced deletion>])
<Result>: Boolean
  • True if the replication was deleted,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Character string or Connection variable
Connection to the HFSQL server on which the replication is performed. This connection corresponds to:
<Identifier>: Integer
Identifier of replication to delete. This identifier corresponds to the Identifier property of the hRSConfig variable describing the replication.
<Forced deletion>: Optional boolean
  • True to force the deletion even if the other server cannot be contacted. In this case:
    • the information regarding the replication will not be deleted from the subscriber server.
    • for a bidirectional replication, the replication will not be deleted from the other server. We advise you to perform this deletion from this server as well to avoid a useless memory consumption. .
  • False (default) to delete the replication only if the subscriber server is accessible.
Component: wd300hf.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help