Home | Sign in | English EN

  • Restarting a server
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WindowsLinuxPHPWEBDEV - Browser code
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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).
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
// Restart the server
// Restart the server by using a port number
// 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"
SWITCH HServerStatus(Cnt_HFSQL.Server)
CASE hStopped: Info("Server stopped")
CASE hStarted: Info("Server started")
CASE hInaccessible: Info("Server not available")

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).

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. Indeed, the operating system does not immediately close the connections already established betweeen the clients 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: wd270hf.dll
Minimum version required
  • Version 9
This page is also available for…
Click [Add] to post a comment