All,
I set up a DeadLock Event notification routine that emails us (DBA) the various objects involved in the deadlock via the DEADLOCK_GRAPH.
I also setup SQLServer Alert for Deadlocks which also emails us parallely.
Is there a way to include the message in the Alerts as a part of the Event Notification itself? The reason I'm asking is the Alert message summarizes what type of deadlock we have encountered. In the below case it is related to Parallelism. I could then look at the actual code(s) (part of DEADLOCK_GRAPH) and identify what code need to be appended with MAXDOP option (to avoid parallelism).
"Transaction (Process ID 141) was deadlocked on lock | communication buffer resources with another process and has been chosen as the deadlock victim. Rerun the transaction."
Thanks,
rgn