Possible to get qry statistics in a result set? | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Possible to get qry statistics in a result set?

Stats from SET STATISTICS IO ON and SET STATISTICS TIME ON, is there a way to get those into a result set? Purpose being that I benchmark qry’s quite a bit, and ultimately what I’d like to have is a GUI where 2 (or more) qry’s are entered, a submit button/link is clicked, the queries run in the background, and the stats of each are transmitted and output client side.
I don’t think there is any ways to do this… Mohammed U.
]]>