您的位置:首页 > 数据库

SQL server Profiler and excution plan usage for CPU usage high analysis

2013-10-17 15:45 465 查看
1. 通过profiler去capture several minutes data;

2. see which store procedure takes much time (for example, the store procedure take 6.5 seconds)

3. via the execution plan to analyze which SQL sentence takes time.

selected the SQL sentence and click "Display Estimated Execution plan", it will analyze.



4.



5. see the snapshot above,

it will tell u which part takes most of time.

for me, there is a table, which take much time.

6. so we need to create a non-clustered index for the column in the table, then rebuild it.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐