Log User-Defined Messages

You can specify whether a user-defined message is logged to the Adaptive Server error log as well as to the Windows event log.

Adaptive Server lets you make this determination for:

See sp_addmessage and sp_altermessage in the Reference Manual: Procedures.