The execution plan for a query can be obtained from SQL Server.
There's probably a number of ways that this can be handled, and of course this could get rather time consuming depending on how one goes about rendering the plan (I.E. Go SSMS style and show icons for each node in the plan, etc.)
The execution plan for a query can be obtained from SQL Server.
There's probably a number of ways that this can be handled, and of course this could get rather time consuming depending on how one goes about rendering the plan (I.E. Go SSMS style and show icons for each node in the plan, etc.)
A C# example can be found here:
https://stackoverflow.com/questions/25879543/are-there-any-way-to-programmatically-execute-a-query-with-include-actual-execut