• Uhhh.. wait: maybe you can query sys.dm_exec_query_stats and get statistics for statement you already have executed, something like:

    select b.text, *

    from sys.dm_exec_query_stats as a

    cross apply sys.dm_exec_sql_text(sql_handle) as b

    For stored procedures you could query sys.dm_exec_procedure_stats.

    Hope this helps

    Gianluca

    -- Gianluca Sartori