• You can get the trace file names in use from fn_trace_getinfo, assuming you know the traceid.

    SELECT value

    FROM fn_trace_getinfo( @traceid )

    WHERE property = 2

    Or if the traceid is uncertain but the base filename is known you could try

    SELECT value

    FROM fn_trace_getinfo(0)

    WHERE property = 2 AND value LIKE '%filename%'