4D v13

On Server Startup Database Method

Home

 
4D v13
On Server Startup Database Method

On Server Startup Database Method 


 

On Server Startup Database Method 
Does not require any parameters

  

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 remote 4D connects to the server, use the On Server Startup Database Method.

Note: The On Server Startup Database Method is executed automatically, which means that no remote 4D can connect until the method has finished executing.

 
PROPERTIES 

Product: 4D
Theme: 4D Server Database Methods

 
INDEX

Alphabetical list of commands

 
HISTORY 

 
SEE ALSO 

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