How does SSMS calculate the cost of the request (relative to the batch) displayed when you select to include the actual execution plan?
Basically, I have several saved execution plan XML files that I want to compare with each other. It should calculate this number somehow from the data in the XML files, but I do not see how this is done. If I open one of my .sqlplan files that contains more than one query, it will correctly display those related to batch values. I just want to do it myself.
FYI: To get this XML, on the Execution Plan tab, right-click and select "Show XML Execution Plan ..."
Bryan source share