4D v14

On Server Startup Database Method

Home

 
4D v14
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

 
HISTORY 

 
SEE ALSO 

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

 
ARTICLE USAGE

4D Server Reference ( 4D v13)
4D Server Reference ( 4D Server v11 SQL Release 6)
4D Server Reference ( 4D v14 R2)
4D Server Reference ( 4D v14)
4D Server Reference ( 4D v14 R3)
4D Server Reference ( 4D Server v14 R4)

Parent of : On Server Startup Database Method ( 4D Server v12)