SQL Profiler Practice.

知识共享许可协议

 

1.  Microsoft SQL Server 2008R2->Performance Tools->SQL Server Profiler.

2. Before start to run a new Trace for you DB you should to get you DB id by this way;

use master
SELECT * FROM sysdatabases WHERE name = 'DBName'

3. Create a new trace.

 

 

 4. There has a lot of event and history in list, so we need some filters to get what we want .  We need to define some right condition for the filters.

posted on 2011-03-24 11:01  zencorn  阅读(195)  评论(0编辑  收藏  举报