question

Steve Jones - Editor avatar image
Steve Jones - Editor asked

SQL Trace v Profiler

What's the difference between SQL Trace and the Profiler? When does it make sense to use one over the other?

profilersql-trace
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Jay Bonk avatar image
Jay Bonk answered

Profiler is a client application where the SQLTrace or Server Side Traces are invoked through calling stored procedures on the server.

In general terms, I would use Profiler when trouble shooting a performance problem as it's occurring. I would use Server side traces for monitoring a production server....

The biggest reason that I thought for using a server side trace over Profiler was the band width usage in sending the results back to the client, but the following blog on SQLServerPedia, also points out that Profiler or client side traces can impact transaction throughput by as much as 10%

http://sqlserverpedia.com/wiki/The_Server-side_Trace%3A_What,_Why,_and_How

Also MSSQLTIPS has a good description for setting up server side traces: http://www.mssqltips.com/tip.asp?tip=1035

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Alberto De Rossi avatar image
Alberto De Rossi answered

Steve: what kind of triky question is this? Isn't Profiler the tool used to start SQL Traces? So, basicaly, both are the same. You can´t choose one or another.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.