How to filter Profiler trace by dbid in 2005?

Is there any way to filter a SQL Profiler trace by dbid? This was a feature of earlier versions, but I can't figure it out in 2005.

Thanks!

[161 byte] By [BarefootBoy] at [2007-12-24]
# 1

Hi there.

From the Profiler GUI, create a new trace, move to the Events Selection tab, click the Show all Columns check box (this is important, as the filters box will only show columns that are selected in the interface), then click the Column Filters button in the lower right corner of the box, you should see the DatabaseID option about 1/3 of the way down the list box on the left...click it, then set the appropriate value in the text box in the lower right of the screen...

HTH,

ChadBoyd at 2007-10-8 > top of Msdn Tech,SQL Server,SQL Server Tools General...
# 2

Yep... it's a little tricky because it's not shown by default.

Steps:

1) Create a new trace.
2) Click the Events Selection tab.
3) Check the box Show All Columns.
4) Click the Column Filters... button.
5) Choose DatabaseID from the listbox on the left.

Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/

PaulMestemaker-MSFT at 2007-10-8 > top of Msdn Tech,SQL Server,SQL Server Tools General...
# 3

Aha! This is one of those 2 step processes. Thanks a lot!

BarefootBoy at 2007-10-8 > top of Msdn Tech,SQL Server,SQL Server Tools General...

SQL Server

Site Classified