How can I determine which queries used most memory for sorts/joins/etc?
How can I determine how much memory did one particular query use up?
I was hoping to find something like SET STATISTICS IO ON for an individual query, and a DMV to find out worst offenders, but I could not find any.
sys.dm_exec_query_memory_grants: