How do I limit a SQL Server Profiler to trace only inserts, updates and deletes to a specific database?
Asked
Active
Viewed 1.4k times
2 Answers
3
You can filter by database name or database id.
Use SP_trace_setfilter to filter for one database.
sp_trace_setfilter (Transact-SQL)
If you are doing from GUI (which I do not recommend, you are better off with a server side trace), click filter columns and then chose DatabaseName. See the picture below for doing it via GUI:
SqlWorldWide
- 13,687
- 3
- 30
- 54



