Sometimes when analyzing a performance problem it’s useful to know from where a particular sql statement was called and how much time does it consume (recursive and self). Fortunately this information is present in SQL trace file but how to format it in a readable way.In my last post i have presented the new version of TrcExtProf profiler and some of the important table that every one can work on to extend the functionality of the script.So here i will add a new section to TrcExtProf based on the “TRCEXTPROF_GEANOLGY_TEXT” table to display the SQL genealogy.
Here is the query used :