title: Is there an alternative to SET STATISTICS TIME which also shows the statements?
body: <p>SET STATISTICS TIME statement is only useful while developing as with it one can performance tune additional statement being added to the query or UDF/SP being worked on. However when one has to performance tune existing code, e.g. a SP with hundreds or thousands of lines of code, the output of this statement is pretty totally useless as it is not clear which to which SQL-statement the recorded times belong to.</p>
  
  <p>Isn't there any alternatives to SET STATISTICS TIME which also show the Statements to which the recorded times belong to?</p>