Hiding an event handler

For improved security, you can hide the definition for an event handler using the ALTER EVENT statement.

Prerequisites

You must have either the MANAGE ANY EVENT or ALTER ANY OBJECT system privilege.

Task
  1. Connect to the database.
  2. Execute an ALTER EVENT statement with the SET HIDDEN clause:
    ALTER EVENT event-name SET HIDDEN

The event handler is permanently obfuscated in the event handler definition that is stored in the action column of the ISYSEVENT system table.