You
can arrange to have user-defined events logged to the Windows 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, including: 
- 
                    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 
See xp_logevent in the Reference Manual: Procedures.