|
|
|
|
|
HStartServer (Function) In french: HDémarreServeur
Available only with this kind of connection
Allows you to start an HFSQL server (this function uses the MantaManager service).
HStartServer("PosteServeurCS")
HStartServer("PosteServeurCS:4901")
HStartServer("PosteServeurCS", "Serveur HFSQL")
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
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|