Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 trace sql with only one DB

Author  Topic 

billdng
Starting Member

17 Posts

Posted - 2008-12-03 : 20:58:23
dear all,
i want to trace the sql execute status with the sql server profiler . my db environment is sql server 2005.
and i have two DBs which named "DB1" and "DB2". my question is : how can I trace the sql only DB1 ? Thanks.

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 21:10:09
Apply Filter in SQL Profiler to only that DBNAME.
Go to Top of Page

billdng
Starting Member

17 Posts

Posted - 2008-12-03 : 21:13:30
quote:
Originally posted by sodeep

Apply Filter in SQL Profiler to only that DBNAME.



in sql server 2005, I can't find the row named ‘DBNAME’ to filter. what can i do ? thanks
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 21:15:56
You should choose 'show all columns' and apply filter to particular DBNAME.
Go to Top of Page

billdng
Starting Member

17 Posts

Posted - 2008-12-03 : 21:21:03
quote:
Originally posted by sodeep

You should choose 'show all columns' and apply filter to particular DBNAME.


it is done. thanks a lot.
Go to Top of Page

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-03 : 21:44:35
Cool.
Go to Top of Page
   

- Advertisement -