From f2c126ac3f010255f6fc1426ee53c12abe97a2f4 Mon Sep 17 00:00:00 2001 From: Erik Darling <2136037+erikdarlingdata@users.noreply.github.com> Date: Wed, 22 Apr 2026 16:18:23 -0400 Subject: [PATCH] Add right-click View Plan on Lite Deadlocks grid (#880) Surfaces the estimated plan for a deadlock participant by looking up the row's sql_handle + statement offsets (and executionStack frames as fallback) against sys.dm_exec_query_stats. Tab is labeled "Est Plan - Victim/Deadlocker SPID N". Co-Authored-By: Claude Opus 4.7 (1M context) --- Lite/Controls/ServerTab.xaml | 31 +++++++++- Lite/Controls/ServerTab.xaml.cs | 103 ++++++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+), 1 deletion(-) diff --git a/Lite/Controls/ServerTab.xaml b/Lite/Controls/ServerTab.xaml index 6ee7b1c..26b018c 100644 --- a/Lite/Controls/ServerTab.xaml +++ b/Lite/Controls/ServerTab.xaml @@ -57,6 +57,30 @@ + + + + + + + + + + + + + + + + + + + + + @@ -71,6 +95,11 @@ + + +