On Server Startup Database Method

4D - Documentation   Français   English   German   4D Server 2004, Theme List   4D Server 2004, Index   Back   Previous   Next

version 6.8 (Modified)


The On Server Startup Database Method is called once on the server machine when you open a database with 4D Server. The On Server Startup Database Method is NOT invoked by any 4D environment other than 4D Server.

The On Server Startup Database Method is the perfect place to:

Initialize interprocess variables that you will use during the whole 4D Server session.

Start Stored Procedures automatically when a database is opened.

Load Preferences or Settings saved during the previous 4D Server session.

Prevent the opening of the database if a condition is not met (i.e., missing system resources) by explicitly calling QUIT 4D.

Perform any other actions that you want performed automatically each time a database is opened.

To automatically execute code on a client machine when a 4D Client connects to the server, use the On Startup database method.

See Also

Database Methods, On Server Shutdown Database Method, SP-Based Import (Example).


4D - Documentation   Français   English   German   4D Server 2004, Theme List   4D Server 2004, Index   Back   Previous   Next