I need to optimize a legacy stored procedure, with over 2.000 lines, but I'm unable to view the execution plan, when I try to do so, the client crashes.
The procedure executes over 200 queries during the execution, if I mark the option to generate the actual execution plan, but I don't click on the execution plan tab, it finishes without errors, but when I try to see the execution plan itself, the client crashes, it doesn't display any errors, simply closes and opens again, the system messages also do not display any error message.
Is there another way to view the execution plan, or any other option, except rewrite the legacy code, that I am not familiar with? thank you.