Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Only Seeing Last Plan with Actual Plan Command #2663
Also tried it on the current stable version. Actually, that's where I found it first..
Steps to Reproduce:
Maybe my expectations are just off?
referenced this issue
Sep 24, 2018
This is basically the same issue as #1995. The problem is that showplan control we're using only renders one showplan XML document at a time.
If there are multiple statements within a batch then only a single XML showplan is returned for all the statements in the batch when getting the estimated plan. If there are multiple batches then one XML showplan is returned per-batch with estimated. With actual plans one XML document is returned per statement regardless of batches.
We have a couple different ideas how to resolve this limitation, but this isn't fixed in Dec release.