Is there a way to know which message is being currently processed . ?
Currently i am writing a log when the stored proc is being called. I am
looking for a better way to query the system queues or conversation end
points.
advise
The RECEIVE statement inside your store procedure could retrieve one, many,
or all the messages currently in the queue. The only way to keep track of
which message is being processed by a stored procedure is to manually log
some useful information about the message (e.g. an ID) within the transaction
that processes it.