• Great article, this will be very useful.

    I spotted a typo on line 65 of your stored proc:

    from ::fn_trace_geteventinfo(1) AS X

    ...should be:

    from ::fn_trace_geteventinfo(@traceid) AS X

    Cheers

    Chris