ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Managing databases / HFSQL / HFSQL Client/Server functions
  • Restarting a server
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
HStartServer (Function)
In french: HDémarreServeur
HFSQL Client/ServerAvailable only with this kind of connection
Allows you to start an HFSQL server (this function is using the MantaManager service).
Example
// Restart the server
HStartServer("CSServer")
 
// Restart the server by using a port number
HStartServer("CSServer:4901")
 
// Restart the server by using a server name
HStartServer("CSServer", "HFSQL server")
// Restart the server by using a connection variable
 
Cnt_HFSQL is Connection
Cnt_HFSQL.Provider = hAccessHFClientServer
Cnt_HFSQL.User = "admin"
Cnt_HFSQL.Password = ""
Cnt_HFSQL.Server = "GB:4916"
Cnt_HFSQL.Database = "CRM"
 
HStartServer(Cnt_HFSQL.Server)
 
SWITCH HServerStatus(Cnt_HFSQL.Server)
CASE hStopped: Info("Server stopped")
CASE hStarted: Info("Server started")
CASE hInaccessible: Info("Server not available")
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 occurred. 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:
<Computer name>: <Port number>
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 occurred. 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: The server may not be restarted immediately once it has been stopped. 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: wd290hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help