打印本文 打印本文 关闭窗口 关闭窗口
SQL SERVER 2000系统提供的跟踪函数(二)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数4891  更新时间:2007/11/14 11:05:08  文章录入:mintao  责任编辑:mintao
42
43

这个结果告诉我们,这个跟踪在检测以下事件:

·                       SQL: BatchCompleted—event id of 12

·                       SP: Recompile—event id of 37

·                       SQL: StatementStarting—event id of 40

·                       SQL: StatementCompleted—event id of 41

·                       SP: Starting—event id of 42

·                       SP: Completed—event id of 43

同样的,我们可以运行相同的函数,进行很小的改动就可以获得一个跟踪的所有数据列

SELECT DISTINCT columnid FROM :: fn_trace_geteventinfo(1)
--Results: 
columnid    
----------- 
1
10
11
12
13
14
16
17
18

这里我们收集的典型数据用来性能调整,

上一页  [1] [2] [3] [4] [5] [6]  下一页

打印本文 打印本文 关闭窗口 关闭窗口