SafeGuard Enterprise Task Scheduler: Events are not being deleted, Last Run Result status is 'Success'

  • Article ID: 113697
  • Updated: 28 Apr 2016


SafeGuard Enterprise events are not being deleted from the scheduled task even though the Task Scheduler 'Last Run Result' status is 'Success'.

Known to apply to the following Sophos product(s) and version(s)
SafeGuard Management Center / Local Policy Editor 7.0

What To Do

The service account being configured for the TaskScheduler Service should have "sufficient" SQL rights (as per KBA 113582, this is db_reader, db_writer and public).

In addition to this, the account requires 'execute' rights to the respective Database/ Stored Procedure. To grant permissions on a stored procedure, please do the following:

  1. Open SQL Server Management Studio
  2. Connect to the instance which contains the SafeGuard Database
  3. Expand Databases
  4. Expand the SafeGuard database
  5. Expand Programmability
  6. Expand Stored Procedures
  7. Expand System Stored Procedures
  8. Right-click dbo.spCleanEventTable, select Properties and then the Permissions section
  9. To grant permissions to a user, database role, or application role, click Search.
  10. In Select Users or Roles, click Object Types to add or clear the users and roles you want.
  11. Click Browse to display the list of users or roles. Select the users or roles to whom permissions should be granted.
  12. In the Explicit Permissions grid, select the permissions to grant to the specified user or role.

For further information, please refer to MS KBA Grant Permissions on a Stored Procedure.


IMPORTANT: Before performing any changes to the SafeGuard Database, always create a FULL database backup first.

For further information regarding event cleanup by script, please refer to section 33.13 (Scheduled event cleanup by script), page 263 of the SafeGuard Enterprise administrator help

If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent