SQL Server Execution Plan Analyzer
Paste a SQL Server execution plan as showplan XML. dbCove AI finds the operator that costs the time, says why and writes the fix.
How to get the plan in SQL Server
Include Actual Execution Plan (Ctrl+M), run the query, right-click the plan, choose Show Execution Plan XML and paste all of it.
The actual plan as XML, returned with the results:
SET STATISTICS XML ON;The estimated plan of a statement that already ran:
SELECT qp.query_plan FROM sys.dm_exec_query_stats qs CROSS APPLY sys.dm_exec_query_plan(qs.plan_handle) qp;Plans kept across restarts:
SELECT query_plan FROM sys.query_store_plan WHERE query_id = @query_id;What it looks for in a SQL Server plan
The first operator where the row estimate and the actual count part ways, and the join choice it led to.
A parameter of another type than the column, which turns a seek into a scan of the whole index.
A seek on a narrow index that goes back to the clustered index once for every row.
Sort and Hash Match warnings that spill to tempdb, and grants far from what the query used.
The optimizer's suggestion, checked against the plan before it becomes a fix.
This was one statement. dbCove watches all of them.
On your own databases dbCove AI has the history of every plan, every wait and every change, so it can tell you why a plan flipped, not only that it is slow. Free for 2 databases of each engine.
Questions
Is what I paste kept?
It is sent to our AI provider to be explained and kept by us for up to 12 months to improve the tools; the AI provider does not keep it or train on it. Remove passwords and personal data before you paste.
Actual or estimated plan?
The actual plan: it has the rows each operator really returned and how often it ran. An estimated plan from the cache or Query Store still gets an answer, ranked by the optimizer's cost.
Can I paste an .sqlplan file?
Yes. An .sqlplan file is the plan's XML: open it in a text editor and paste it. Plans up to about 180,000 characters fit; for a long batch, paste the plan of the slow statement.
Which versions does it read?
SQL Server 2012 to 2022, Azure SQL Database and Azure SQL Managed Instance.