4D v14On Server Shutdown Database Method |
|||||||||||||||||||||||||||||||||||||||||||||||
|
4D v14
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
SEE ALSO
On Server Startup Database Method ARTICLE USAGE
4D Server Reference ( 4D v13) |
|||||||||||||||||||||||||||||||||||||||||||||