ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Restarting a server
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HStartServer (Function)
In french: HDémarreServeur
HFSQL Client/ServerAvailable only with this kind of connection
Allows you to start an HFSQL server (this function uses the MantaManager service).
Example
// Redémarrage du serveur 
HStartServer("PosteServeurCS")
// Redémarrage du serveur en utilisant un numéro de port
HStartServer("PosteServeurCS:4901")
// Redémarrage du serveur en utilisant un nom de serveur
HStartServer("PosteServeurCS", "Serveur HFSQL")
// Redémarrage du serveur en utilisant une variable connexion
Cnx_HFSQL is Connection
Cnx_HFSQL.Provider = hAccessHFClientServer
Cnx_HFSQL.User = "admin"
Cnx_HFSQL.MotDePasse = ""
Cnx_HFSQL.Server = "GB:4916"
Cnx_HFSQL.Database = "CRM"
HStartServer(Cnx_HFSQL.Server)
SWITCH HServerStatus(Cnx_HFSQL.Server)
	CASE hStopped : Info("Serveur arrêté")
	CASE hStarted : Info("Serveur démarré")
	CASE hInaccessible : Info("Serveur inaccessible")
END
Syntax

Restarting a server (with ability to specify the port of the HFSQL server) Hide the details

<Result> = HStartServer(<Server>)
<Result>: Boolean
  • True if the server was re-started,
  • False if an error occurs. HError is used to identify the error.
<Server>: Character string
Server name. The port number used by the HFSQL server can be specified. The port 4900 will be used by default. If the port number of the HFSQL server is different, use the following notation:
<Nom du poste>: <Numéro de port>
Example: "ComputerName:4901"
The port number corresponds to the port number used in HOpenConnection.

Restarting a server while specifying the name of the HFSQL server Hide the details

<Result> = HStartServer(<Server> , <HFSQL server>)
<Result>: Boolean
  • True if the server was re-started,
  • False if an error occurs. HError is used to identify the error.
<Server>: Character string
Server name.
<HFSQL server>: Character string
Name of the HFSQL server to restart (this name appears in the HFSQL Control Center).
Remarks

Restarting a server

  • If the server is already started when HStartServer is called, the server is not restarted. HServerStatus returns the status of a server.
  • No specific rights are required to start a server.
Remark: Following a server shutdown, it may not be possible to restart the server immediately.. The operating system does not immediately close the connections already established between the client computers and the server. Simply wait a few minutes (depending on the operating system timeout) before restarting the server.
Business / UI classification: Business Logic
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help