Skip to content

Commit

Permalink
Fixed issue #12
Browse files Browse the repository at this point in the history
  • Loading branch information
rgward committed Nov 22, 2022
1 parent 42d4543 commit 9bde60c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ USE WideWorldImporters;
GO
-- Look at the dispatcher plan
-- If you "click" on the SHOWPLAN XML output you will see a "multiple plans" operator
SELECT qp.plan_id, qp.query_plan_hash, cast (qp.query_plan as XML)
SELECT qp.plan_id, qp.query_plan_hash, qv.query_variant_query_id, cast (qp.query_plan as XML) as dispatcher_plan
FROM sys.query_store_plan qp
JOIN sys.query_store_query_variant qv
ON qp.plan_id = qv.dispatcher_plan_id;
Expand Down

0 comments on commit 9bde60c

Please sign in to comment.