SQL Server 2008 Profiler always profiles all databases. I want to restrict profiling or output to a single database. How can that be done most easily?
+1
A:
There is a column output/filter by database name or Id. You have to choose "Show all columns" when setting the trace up.
gbn
2009-07-03 14:48:57
works. thank you.
usr
2009-07-03 15:10:20
+1
A:
Go to trace properties, then show all columns. Once you have selected DatabaseName you can go into ColumnFilters... and set Like to equal the name of the database you want to filter on.
Alex Peck
2009-07-03 14:50:05
You can also click on the column title in the selection grid, will display the Filter dialog and let you set a filter condition.
Remus Rusanu
2009-07-03 14:57:50