Main | Update Table Based on Join to Different Database »
Thursday
Sep012011

Import .trc files to database table

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

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>