AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Administrar bases de datos / HFSQL / Gestión de la replicación / Funciones WLanguage
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
Adds a replication between two HFSQL server onto the master server.
Example
MyConnection is Connection
 
ConfigReplication1 is hRSConfig
ConfigReplication1.Server = "atlas.mycompany.com:4996"
Add(ConfigReplication1.File, "MyDatabase")
Add(ConfigReplication1.File, "-MyDatabase\MyFilefic")
MyConnection.RSAddConfig(ConfigReplication1, hrsNoCopy)
Syntax
<Result> = <Connection>.RSAddConfig(<Replication to perform> , <Option> [, <Progress Bar>])
<Result>: Boolean
  • True if the replication was added,
  • False otherwise. HErrorInfo is used to identify the error.
<Connection>: Connection variable
Name of the Connection variable that describes the connection to the master HFSQL server.
<Replication to perform>: hRSConfig variable
Name of hRSConfig variable describing the replication to perform.
<Option>: Integer constant
Action to perform:
hrsCopyEnables the initial copy of replicated elements from the connection server (master server) to the other server (subscriber server, defined in the hRSConfig variable). This copy is locking.
Compatibility with the earlier versions: Corresponds to True in the earlier versions.
hrsCopyBackgroundTaskEnables the initial copy of replicated elements from the connection server (master server) to the other server (subscriber server, defined in the hRSConfig variable). This copy is performed in background task and it is not locking.
To find out whether the copy was performed:
  1. List the available replications with <Connection variable>.RSListConfig.
  2. If the desired replication does not appear in the list, it means that it was not added.
  3. If the desired replication appears in the list, check the value of the Initialization property of the hRSConfig variable. If this property:
    • is included between 0 and 1000, the replication is currently added.
    • is set to 1000, the replication was added.
    • is not specified, the replication failed to be added.
hrsNoCopyNo copy is performed.
Compatibility with the earlier versions: Corresponds to False in the earlier versions.
<Progress Bar>: Optional control name
Name of the Progress Bar control used to see the progress of initial copy.
Component: wd290hf.dll
Versión mínima requerida
  • Versión 25
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 06/07/2023

Señalar un error o enviar una sugerencia | Ayuda local