Hi ,
I am trying to write a message to the Event Viewer by using the command
:raiserror(@testmessage,16,1) with log
The message does get logged but it also logs the error number,severity and state before the message.
This stops the message to get picked up by certain monitors as they look for the first 3 words in the message.
Is there any way to make sure that the message gets logged first, better still if I can eliminate logging of the error number , state and severity.
Also if there is another way to log message from T-SQL that would be of great help..