GSquared (1/12/2012)
But you can query trace files directly, without the import step, by using fn_trace_gettable(). That's what I usually do.
taking that one step further, since you can directly query a trace, you can also create a a VIEW that contains that same query.
then it's just a matter of querying the view on demand when you need to review it.
here's a simple example of my default trace:
CREATE VIEW dbo.VW_Trace_1
AS
SELECT
ev.name ,
tr.*
FROM ::fn_trace_gettable('C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Log\log_63.trc', default) tr
INNER join sys.trace_events ev
ON tr.eventclass = ev.trace_event_id
Lowell