4D v13.4INTEGRATE LOG FILE |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
INTEGRATE LOG FILE
INTEGRATE LOG FILE
Preliminary note: This command only works with 4D Server. It can only be executed via the Execute on server command or in a stored procedure. The INTEGRATE LOG FILE command integrates the log file, whose name or pathname was passed in the pathName parameter, into the current database. This command is meant to be used for setting up a backup system using a logical mirror (see the section “Setting up a logical mirror” in the 4D Server Reference manual). Only log files that are not archived (extension .journal) can be integrated using this command. No dialog box appears; but a progress bar is displayed on screen. In the pathName parameter, you can pass an absolute pathname or one that is relative to the database folder. If you pass an empty string in this parameter, a standard open file dialog box will be displayed to allow you to indicate the file to be integrated. If this dialog box is cancelled, no file will be integrated and the system variable OK is set to 0. When using this command, it is up to the developer to:
If the integration is carried out correctly, the system variable OK is set to 1; otherwise, it is set to 0. In the event of an error, the command generates a code that can be intercepted using the ON ERR CALL command. If there are any locked records in the database, the command does nothing and the error 1420 is generated. |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: 4D 2004.3 SEE ALSO |
||||||||||||||||||||||||||||||||||||||||||||||||||||||