on 05-02-2019 10:25 PM
What is the location of the CLIENT console log for Scheduled Events?
message string('BEGIN MY PROCEDURE: ',getdate()) type status to client
TO CLIENT is declared as "Send messages to the client application".
As events run within the database server, there is no "client application", so I would assume the MESSAGE output gets lost, and I would not know how the server should react upon a "TYPE ACTION/WARNING" message sent from the event...
AFAIK it's absolutely common to use MESSAGE TO LOG within events.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, I cannot answer your actual question. That being said, I just would strongly suggest to use MESSAGE TO CONSOLE or MESSAGE TO LOG (or TO SYSTEM LOG / EVENT LOG) within events because TO CLIENT is just not appropriate here.
If you want an "interactive output", there is the MESSAGE FOR CONNECTION variant which can be used to send messages to another database connection – if that is a client application and uses a WAITFOR ... AFTER MESSAGE BREAK loop, you could output the message there. Some questions on that can be found in the separate SQL Anywhere Forum.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.