|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Monday, December 01, 2008 8:01 AM
Points: 369,
Visits: 77
|
|
|
|
|
|
Right there with Babe
      
Group: General Forum Members
Last Login: Today @ 9:16 AM
Points: 768,
Visits: 1,161
|
|
In SQL Server 2005, 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.
That is tricky, I was very certain I got it right (1061 seconds) because I have done too many durations tracking, IN GUI where I want things under 1000 (1 second).
Thanks for the tip
SQLServerNewbie
MCITP: Database Administrator SQL Server 2005
|
|
|
|
|
SSCarpal Tunnel
       
Group: General Forum Members
Last Login: Today @ 1:35 AM
Points: 4,787,
Visits: 1,336
|
|
A little tricky one but good one.
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Tuesday, December 07, 2010 8:13 AM
Points: 436,
Visits: 322
|
|
| I was thinking in thousanths of a second. Isn't that what VB uses or am I just several zeros off everywhere?
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:07 PM
Points: 7,096,
Visits: 7,156
|
|
Either the answer is just plain wrong or the question is sloppily worded.
The appropriate BoL statement is (as quoted in the explanation) 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. So if the trace is viewed in the profiler GUI the duration is shown in milliseconds and the answer given as "correct" is 3 orders of magnitude too small.
On the other hand, maybe the question meant that the trace was setup to write to a table, and the select referred to wasn't what was traced but was a select to read from that table. That's a very different question, and if that had been the question provided then the duration would be in microseconds and the answer provided would have been right.
Tom Que conclure à la fin de tous mes longs propos? C'est que les préjugés sont la raison des sots. (Voltaire, 1756)
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: Tuesday, February 19, 2013 12:31 AM
Points: 412,
Visits: 61
|
|
| Trace will show the duration in milliseconds. Correct answer should be third option. Please check it out
|
|
|
|