PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Restarting a server
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HStartServer (Function)
In French: HDémarreServeur
HFSQL Client/ServerAvailable only with this kind of connection
Allows you to start a HFSQL server (this function is using the MantaManager service).
Note: From version 19, HFSQL is the new name of HyperFileSQL.
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(<Computer Name>)
<Result>: Boolean
  • True if the server was re-started,
  • False if an error occurred. HError is used to identify the error.
<Computer Name>: Character string (with quotes)
Name of server. 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(<Computer Name> , <Name of HFSQL Server>)
<Result>: Boolean
  • True if the server was re-started,
  • False if an error occurred. HError is used to identify the error.
<Computer Name>: Character string (with quotes)
Name of server.
<Name of HFSQL Server>: Character string (with or without quotes)
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 during the call to HStartServer, the server is not re-started. HServerStatus is used to find out the status of a server.
  • No specific rights are required to start a server.
Note: 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. Wait a few minutes (depending on the system time-out) before restarting the server.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Linux wd230hf.so
Windows Mobile wp230hf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment