Microsoft retired Azure Data Studio in February 2026. Here is how I inspect .sqlplan files, diff execution plans, and untangle deadlocks on macOS and in VS Code now.
Microsoft retired Azure Data Studio on February 28, 2026. For years it was my default recommendation whenever someone worked with SQL Server or Azure SQL on a Mac and didn’t want to keep a Windows VM around just for SSMS.
Three gaps that kept slowing me down
Once Azure Data Studio went away, the friction showed up in performance debugging rather than basic querying:
Offline .sqlplan and .xdl files on macOS. Someone drops a 2 MB .sqlplan or an Extended Events .xdl deadlock file into Slack or Jira. Reading nested <RelOp> XML in a text buffer is painful, and uploading production query plans to a public pastebin is usually blocked by security policy.
Tab-flipping to compare two plans. After adding an INCLUDE column or removing a join hint, staring at two big trees in separate tabs makes it easy to miss why one plan is faster or whether a compiled parameter value skewed row estimates.
Different tools for every engine. Most backend teams I work with touch Azure SQL in one service, PostgreSQL in the next, and SQLite in local tests. Learning a separate visualizer per database wastes time when you just want to see which operator burned the I/O.
To fix this for myself, we extracted the parser, plan differ, and deadlock analyzer from Culprit SQL Studio into standalone WebAssembly packages.
Comparing .sqlplan files side by side
Take a typical SQL Server checkout query. The baseline plan seeks ix_orders_status_created, matches 18,400 rows, and then runs a Key Lookup on pk_orders 18,400 times before TOP 50 finishes.
Adding the three fetched columns (customer_id, total_cents, shipping_notes) to INCLUDE removes the lookup completely:
184 ms -> 3 msMeasured elapsed time (61x faster)
56,120 -> 157Logical 8 KB page reads
18,400 -> 0Key Lookups against pk_orders
The viewer below is the live @culpritsql/plan-viewer React component, not a static image. Click any operator or switch between Diagram and Tree:
Live .sqlplan diffClick any operator or switch Diagram / Tree
ABefore (18.4K Key Lookups)vsBAfter covering INCLUDE index
61× fasterAfter covering INCLUDE index took 61× less time than Before (18.4K Key Lookups) (184 ms → 3 ms).
After covering INCLUDE index has no Nested Loops and Key Lookup on orders (Before (18.4K Key Lookups) has).
After covering INCLUDE index has no Key Lookup on orders (Before (18.4K Key Lookups) has).
14.8
cost · Before (18.4K Key Lookups)
0.210
cost · After covering INCLUDE index
184 ms
time · Before (18.4K Key Lookups)
3 ms
time · After covering INCLUDE index
6 → 4
operators
3
identical regions
Same color: the same steps in both plans Changed operator or index Only in this plan
ABefore (18.4K Key Lookups)SQL Server · actual
Actual plan6 operators · cost 14.880%
Measured run184 ms92 msCPU56Kreads · 1.9K from disk50rows
Where the 184 ms went
result
BAfter covering INCLUDE indexSQL Server · actual
Actual plan4 operators · cost 0.2180%
Measured run3 ms2 msCPU157reads50rows
Where the 3 ms went
result
Live @culpritsql/plan-viewer component: SQL Server drops from 184 ms (56,120 logical reads across 18,400 Key Lookups) to 3 ms (157 logical reads) once the status + created_at index includes the selected columns.
Reading .xdl deadlock cycles without SSMS
Deadlock XML captures had the same problem outside Windows. All the evidence is inside the .xdl file (<victim-list>, <inputbuf>, hobtid key locks, hold vs wait modes), but reconstructing the cycle by hand during an outage is error-prone.
Here is a two-session capture where checkout-worker (SPID 74) and fulfillment-sync (SPID 112) lock dbo.orders and dbo.inventory in opposite order:
Live .xdl deadlock graphHover a session or lock node to trace the cycle
Two transactions locked dbo.inventory and dbo.orders in opposite order and waited on each other; session 74's transaction was rolled back.
holds wantsHover or focus a box to follow its locks.
Session 74 held dbo.orders and wanted dbo.inventory; session 112 held dbo.inventory and wanted dbo.orders. With the same order in both, the second would simply wait instead of deadlocking.
How to fix it
Touch tables and rows in the same order everywhere
Make every code path that changes dbo.inventory and dbo.orders do it in one order (for example, always the parent row first, and rows sorted by key). Then the second transaction waits instead of deadlocking.
Keep transactions short
Do reads, validation and outside calls before the transaction starts; hold locks only for the writes.
Retry the victim
A deadlock victim can be retried safely; the application should catch error 1205 and run the transaction again.
UPDATE dbo.orders
SET shipped_at = SYSUTCDATETIME()
WHERE id = @order_id;
Live @culpritsql/plan-viewer component: parsed from a SQL Server Extended Events .xdl capture. Session 74 and session 112 update dbo.orders and dbo.inventory in opposite order.
The same parser also reads PostgreSQL ERROR: deadlock detected server logs and MySQL / MariaDB SHOW ENGINE INNODB STATUS dumps.
How my setup splits across tools
All three entry points run the exact same Rust parser locally, so I pick whichever matches where the file already lives:
From there, the agent can inspect Query Store regressions, pull execution plans, or test a proposed PostgreSQL index via HypoPG (--with-index) while read-only guardrails stay enforced locally. For production fleets streaming into ADX or ClickHouse, see how we pair warehouse MCP plan tools with culprit lint-sql to open verified index PRs.
Everything is MIT-licensed on GitHub (@culpritsql). If you run into a .sqlplan or deadlock capture that trips the parser, open an issue with a redacted snippet and I will fix it.