I have a problem when I want to see the execution plan of an expensive recent query. The problem is that the result is displayed in XML
and not as a design over the execution plan.
Does anyone know how to fix this?
First of all, for me it works out of the box. Microsoft SQL Server Management Studio 13.0.15700.28. Make sure that you have the latest version. The one that I used for this test is not the very latest, but it works.
I open Activity Monitor in SSMS, expand the Recent Expensive Queries tab, right-click on a query and choose Show Execution Plan in the popup menu, then SSMS opens a new window with the graphical view of the plan.
If I right-click the graphical view of the plan there are commands "Save Execution Plan As..." and "Show Execution Plan XML" in the popup menu, which allow to save XML file with the plan.
Maybe all this works because I have SQL Sentry Plan Explorer installed.
In any case, if you have an XML file with the plan you can open it in SSMS as a graphical view. Change extension of the file from .xml
to .sqlplan
. Then open this file in SSMS using standard File - Open command.
I would highly recommend to use SentryOne Plan Explorer for analyzing the execution plans. It is free and significantly better than SSMS. It can open .xml
and .sqlplan
files with the plan.