sqlprofiler – SQL Profiler CPU /持续时间单位

分析器中SQL Server跟踪的输出包含列和CPU(其中包括)。这些值是什么单位?
CPU以毫秒为单位。
在sql server 2005及更高版本中,持续时间以毫秒为单位保存到文件或表中,而在用户界面中为毫秒。在sqlserver 2000中,它总是以毫秒为单位。从MSDN

用户jerryhung在注释中提供了更准确的版本特定信息:

Beginning with SQL Server 2005, the server reports the duration of an event in microseconds (one millionth, or 10-6 of a second) and the amount of CPU time used by the event in milliseconds (one thousandth, or 10-3 of a second). In SQL Server 2000, the server reported both duration and CPU time in milliseconds. In SQL Server 2005 and later, the SQL Server Profiler graphical user interface displays the Duration column in milliseconds by default, but when a trace is saved to either a file or a database table, the Duration column value is written in microseconds.

http://stackoverflow.com/questions/976628/sql-profiler-cpu-duration-units

本站文章除注明转载外,均为本站原创或编译
转载请明显位置注明出处:sqlprofiler – SQL Profiler CPU /持续时间单位