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
  • Stopping server
  • Rights management
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
HStopServer (Function)
In french: HArrêteServeur
HFSQL Client/ServerAvailable only with this kind of connection
Stops an HFSQL server. Then, the server can be restarted by HStartServer.
Remark: To perform this action, the user must have specific rights on the server.
Example
// Description de la connexion
HDescribeConnection("MaConnexion", "Julie", "MotDePasse", "MonServeurHF", "MaBaseDeDonnées", hAccessHFClientServer, hORead)
// Ouverture de la connexion
HOpenConnection("MaConnexion")
...
HStopServer("MaConnexion")
Syntax
<Result> = HStopServer(<Connection>)
<Result>: Boolean
  • True if the server has been stopped,
  • False if an error occurs. HError is used to identify the error.
<Connection>: Character string or Connection variable
Connection for which the server must be stopped. This connection corresponds to:
Remarks

Stopping server

If Client applications are currently used when the server is stopped, an error message ("Server not available") will be displayed during the next action performed by the client application on the 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.

Rights management

  • To stop the server, the user or user group must have specific rights (hRightsStopServer constant).
  • To find out whether a user or a group of users has sufficient rights, use HInfoServerRights.
  • To modify the rights granted to a user or user group on the server, use HModifyServerRights.
Component: wd300hf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/12/2025

Send a report | Local help