Home > SQL and .NET Blog > Nooks in SQL Server – Part 2

Nooks in SQL Server – Part 2

To read the trace file using querying / To Query the trace files from profiler

Do call the below function and results are in grid

 

    SELECT * FROM ::fn_trace_gettable('D:\Test\test.trc', default)

You can alternatively can store the result to a table by using

Select * into tablename…

-Yuva

Categories: SQL and .NET Blog
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: