Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor just t-sql commands in SQL Profiler?

I have a trouble in monitoring t-sql commands, I want to monitor just commands like: select, insert, update or delete. Can anyone help me?

like image 702
Hossein POURAKBAR Avatar asked Sep 07 '13 03:09

Hossein POURAKBAR


People also ask

How do I monitor SQL traffic?

It's can be found under the Tools menu. To start a trace in it, click Create new trace and then select columns you want to monitor, followed by clicking Run . Show activity on this post. Built in performance monitor can track traffic if you set it up to do so and want to trace when not logged in.


1 Answers

Pick a trace template (such as Tuning) and use a filter.

Either filter by a particular login (such as your own login or a service's login), or a particular database.

For instance, to filter by database: Under Trace properties -> Events tab -> Select show all columns. Set a Like filter on database name.

I find setting a filter on the number of Logical Reads of say > 10 reads, filters out most of the noise.

  • How to: Filter Events in a Trace
  • Using SQL Server Profiler
like image 70
Mitch Wheat Avatar answered Sep 21 '22 02:09

Mitch Wheat