Skip to content

Commit a79a9dd

Browse files
update to
1 parent b70b326 commit a79a9dd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

sp_BlitzCache.sql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,8 +1616,7 @@ WITH total_plans AS
16161616
SELECT
16171617
COUNT_BIG(qs.query_plan_hash) AS duplicate_plan_hashes
16181618
FROM sys.dm_exec_query_stats qs
1619-
LEFT JOIN sys.dm_exec_procedure_stats ps
1620-
ON qs.plan_handle = ps.plan_handle
1619+
LEFT JOIN sys.dm_exec_procedure_stats ps ON qs.plan_handle = ps.plan_handle
16211620
CROSS APPLY sys.dm_exec_plan_attributes(qs.plan_handle) pa
16221621
WHERE pa.attribute = N'dbid'
16231622
AND qs.query_plan_hash <> 0x0000000000000000

0 commit comments

Comments
 (0)