I am trying to create a custom SQL template for my organization using the SAM SQL user experience monitor as AppInsight monitors haven't been very reliable for us. One of the things that I would like to track using my monitor would be the longest running queries by cpu time, duration and the number of executions. I would also like to store the execution plan and display all the information in a table format.
However, it seems that with the SAM monitors, you can only get 1 row and 2 columns back as a result set, the first column being the statistic and the 2nd for the message. Is there a way I can return a table back using a SQL User experience monitor in SAM?