How does SSMS calculate the query cost (relative to the batch) value that is displayed when you select to include the actual execution plan?
Mainly, I have a few saved execution plan XML files that I want to compare with each other. It must be calculating that number somehow from the data in the XML files, but I am not seeing how this is done. If I open one of my .sqlplan files that has more than one query in it, it will show those relative to batch values correctly. I just want to do this myself.
FYI: To get this XML, on the Execution Plan tab, right click and select "Show Execution Plan XML..."