4D v14.3On Server Shutdown database method |
|||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14.3
On Server Shutdown database method
On Server Shutdown database method
The On Server Shutdown database method is called once on the server machine when the current database is closed on 4D Server. The On Server Shutdown database method is NOT invoked by any 4D environment other than 4D Server. To close the current database on the server, you can select the Close Database... menu command on the server. You can also choose the Quit command or call the QUIT 4D command within a stored procedure executed on the server. When the exit from the database is initiated, 4D performs the following actions:
The On Server Shutdown database method is the perfect place to:
Warning: If you use the On Server Shutdown database method to close stored procedures, keep in mind that the server quits once the On Server Shutdown database method (and not the stored procedures) is executed. If some stored procedures are still running at this point, they will be killed. If you want code to be executed automatically on a client machine when a remote 4D stops connecting to the server, use the On Exit database method. |
PROPERTIES
Product: 4D
HISTORY
ARTICLE USAGE
4D Language Reference ( 4D v14 R3) |
|||||||||||||||||||||||||||||||||||||||||||||