4D v13

Registering a Database as a Service

Home

 
4D v13
Registering a Database as a Service

Registering a Database as a Service  


 

 

Under Windows, 4D Server can be launched as a Service.

Compatibility note: This function is no longer available under Mac OS starting with version 12 of 4D Server.

A 4D Server application registered as a service is automatically launched on start-up of the machine with the current database, even before a user session is opened. It is not closed when the user exits their session.
This operation lets you guarantee the availability of a 4D Server database even in the event of an incident that requires restarting the machine. Maintenance can be carried out remotely.

Notes:

  • On a 64-bit Windows platform, a 4D Server application registered as a service is executed with no interface (the server administration window does not appear).
  • For more information about the mechanisms for managing Services, refer to the documentation of your operating system.

To register a 4D Server database as a Service, select Register Current Database as Service in the File menu of 4D Server. The next time the machine is started, 4D Server will be launched automatically and the current database opened. You can register any number of databases. Each database can be registered only once.

Note: Under Windows Vista and Windows 7, this command may be grayed out when access to the service management functions is restricted. In this case, to be able to use this command, you must either:

  • Launch 4D Server with an administrator level (to do this, right click on the application icon and choose the Run as administrator command in the context menu) or
  • Disable the User Account Control (UAC) via the "User Accounts" configuration panel (to do this under Windows 7, choose the "Never notify" option; under Windows Vista, deselect the "Use User Account Control (UAC) to help protect your computer" option).

Warning: Be sure to use a valid account when you open the session. In addition, this user account must have access to a printer, otherwise an error message will be displayed. Access to the services settings is generally via the Administrative Tools/Services of the Control Panel.

  • To unregister your database, select Unregister Current Database from the 4D Server File menu. This command is dimmed if the database is not registered as a service.
  • To unregister all 4D Server databases at once, select Unregister all Server Services from the 4D Server File menu. This command is dimmed if no 4D Server service is enabled.

You cannot change the service registration status of 4D Server from within 4D Server, if the application has been launched as a service on start-up. In this case, the three menu items are disabled. To stop the service, use the Services control panel.

 
PROPERTIES 

Product: 4D
Theme: Using 4D Server