Skip to content

Commit 9bde60c

Browse files
committed
Fixed issue #12
1 parent 42d4543 commit 9bde60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql2022workshop/03_BuiltinQueryIntelligence/pspopt/query_store_dispatcher_plan.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ USE WideWorldImporters;
22
GO
33
-- Look at the dispatcher plan
44
-- If you "click" on the SHOWPLAN XML output you will see a "multiple plans" operator
5-
SELECT qp.plan_id, qp.query_plan_hash, cast (qp.query_plan as XML)
5+
SELECT qp.plan_id, qp.query_plan_hash, qv.query_variant_query_id, cast (qp.query_plan as XML) as dispatcher_plan
66
FROM sys.query_store_plan qp
77
JOIN sys.query_store_query_variant qv
88
ON qp.plan_id = qv.dispatcher_plan_id;

0 commit comments

Comments
 (0)