SQL Server/Development

DB를 이용한 트레이스 파일 분석

MayStyle 2010. 2. 23. 17:57

트레이스 파일 밀어 넣기
SELECT * INTO traceProblem FROM ::fn_trace_gettable('D:\002. Desktop\20100223\final.trc', default)

이벤트랑 맵핑 해서 내용 보기
SELECT   TE.name, T.*
FROM    dbo.traceProblem T -- table that contains the trace results
            JOIN sys.trace_events TE ON T.EventClass = TE.trace_event_id