Allows you to start an HFSQL server (this function is using the MantaManager service).
// 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"
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