Running a maintenance plan

To run a maintenance plan:

  1. Using Manager, click Administration > Maintenance. The Maintenance dialog is displayed.

  2. Select the maintenance plan that you want to run.

  3. Click Start. A new dialog is displayed to confirm your choice.

Log files

Running a maintenance plan creates two log files in the location specified in the maintenance plan:

Running a maintenance plan from the command prompt

Type the path to eimngr.exe, followed by the switch /M and the name of the maintenance plan. Example:

C:\Program Files\ReadSoft\INVOICES\Bin\eimngr.exe /M maintenance_plan_name

This is helpful if you want to use Windows Scheduled Tasks to run maintenance plans automatically.  

If you specify a maintenance plan name that does not exist, an error message is displayed. This can cause problems, for example if you use scripts to run the maintenance plan automatically.

Running maintenance plans from the command prompt returns one of the following result codes:

Only database integrity check errors will return the above error codes.

You can use these result codes to activate notifications or other actions. See an example maintenance batch file.

Locked objects

You cannot run maintenance plans when objects in the database are locked. You must unlock them first. You can do this two ways:

Managing the database