SELECT  
    *
FROM fn_trace_gettable('D:\dbJobs\facturation.trc', DEFAULT)
WHERE CONVERT(TIME,[EndTime]-[StartTime]) IS NOT NULL 
AND CONVERT(TIME,[EndTime]-[StartTime]) < '23:59:59.99'
AND [TextData] IS NOT NULL 
ORDER BY [Duration] DESC 
