The output from a SQL Server trace in profiler contains the columns CPU and Duration (amongst others). What units are these values in?
标签:
sqlprofiler
相关问题
- Parameterized SQL and NULL running slow
- What are the APIs used by SQL Profiler?
- Is it possible to automate SQL Server 2008 profile
- Can profiler templates be migrated to newer versio
- ASP.NET MVC application profiling
相关文章
- Parameterized SQL and NULL running slow
- What are the APIs used by SQL Profiler?
- Is it possible to automate SQL Server 2008 profile
- Can profiler templates be migrated to newer versio
- ASP.NET MVC application profiling
- NHibernate taking a long time to run query
- SQL Server Profiler deprecation - Replacement?
- SQL server profiler not showing LINQ To Sql querie
CPU is in milliseconds. In sql server 2005 and later, duration is in microseconds when saved to a file or a table, and milliseconds in the user interface. In sqlserver 2000, it is always in milliseconds. From MSDN.
User jerryhung gives a more accurate version-specific information in a comment:
According to the documentation (for SQL Server Profiler 2016) the default unit for the Duration column is milliseconds.
It can be changed to microseconds in the General Options: Tools->Options
Nothing wrong with using 2016 profiler on older versions of the DBMS.