SQL Server Profiler - How to filter trace to only display events from one database?

G - M picture G - M · Nov 7, 2008 · Viewed 220.4k times · Source

How do I limit a SQL Server Profiler trace to a specific database? I can't see how to filter the trace to not see events for all databases on the instance I connect to.

Answer

Gulzar Nazim picture Gulzar Nazim · Nov 7, 2008

Under Trace properties > Events Selection tab > select show all columns. Now under column filters, you should see the database name. Enter the database name for the Like section and you should see traces only for that database.