You can arrange to have user-defined events logged to the NT event log from within Adaptive Server. For example, you can create a “database imported” event that is generated after a database has been imported successfully.
Using the xp_logevent extended stored procedure (ESP), you can arrange to log the event. This ESP allows you to specify the following:
The message that is to appear in the event description field of the event viewer when the event is logged
Whether the event should be characterized as informational, warning, or error
For more information, see xp_logevent in the Adaptive Server Reference Manual.