Thursday
Sep012011
Import .trc files to database table
Thursday, September 1, 2011 at 10:56PM I've got a trace running at all times and it saves my traces into a number of .trc files, but how can I import the information into a table so I can get some value out of it?
Well first of all there's an awesome utility here (with whom I'm not affiliated in the slightest) called ClearTrace.
But sometimes I need more verbose reporting on my SQL traces, so I like to dump them into a table (e.g. "trace_table") and sort with my own queries.
Say you're at a place where you have a directory of .trc files on your server in C:\MyTraceFiles\. Here's how you get them into your own table for easy manipulation:

Reader Comments