Search code examples
sqlstored-proceduresdatabase-performancesql-server-2016sql-execution-plan

Comparing stored procedure execution plan at different queries


When I compare execution plans of stored procedures, it only does the first one. I want to compare query 3 which is the main SP but I just am not able to. Is there a way to do this in SQL Server where I can see the stats on the right Properties window.

enter image description here


Solution

  • There is a 'Multi Statement' tab under 'Showplan Compare Options' that allows you to choose which queries you want to compare: enter image description here

    I'm not sure why it's not shown in the picture you've uploaded.