September 21, 2012 at 5:44 am
Is sp_processdetails actually a thing?
Ron
-----
a haiku...
NULL is not zero
NULL is not an empty string
NULL is the unknown
September 21, 2012 at 5:47 am
ronmoses (9/21/2012)
Is sp_processdetails actually a thing?
Nope!
September 21, 2012 at 5:49 am
rVadim (9/20/2012)
I answered "Non of the above". I thought DiskIO in sp_Who2 means reads and writes combined, not just reads as question asks. Am I wrong?
Me, too. <> [Reads]
September 21, 2012 at 6:25 am
Apparently, not everyone thinks that sp_who2 is total disk I/O (reads and writes).
September 21, 2012 at 6:39 am
Stephen_W_Dodd (9/21/2012)
Apparently, not everyone thinks that sp_who2 is total disk I/O (reads and writes).
I think that is incorrect.
As vk-kirov posted, sp_who2 returns data from the system view sysprocesses; the column returned as [DiskIO] from sp_who2 is a reformatted version of sysprocesses.physical_io.
According to BOL (http://msdn.microsoft.com/en-us/library/ms179881%28v=sql.105%29.aspx), the column physical_io in sysprocesses is a BIGINT returning "Cumulative disk reads and writes for the process."
Rich
September 21, 2012 at 6:43 am
I agree, Rich. Just pointing out where some of the confusion may have originated. 🙂
September 21, 2012 at 7:04 am
Good way to end the week! Thanks.
September 21, 2012 at 7:07 am
Shoot, I had selected sp_who2, but changed it since it said disk reads instead of total disk IO.
Ugh... I'm never quite sure if it's an oversight, typo, or trick question. :blink::crazy:
September 21, 2012 at 7:20 am
Victor Kirkpatrick (9/21/2012)
Love answering a question correctly and getting it wrong. Either correct the question and say total IO and not "reads", or correct the answer.
I agree.
September 21, 2012 at 8:11 am
Thanks guys...I always try to upload easy and interesting questions. Some time begin a DBA or Develper we do not pay attention n these small but important things, which can make our lives very easy.:-)
Best,
Naseer Ahmad
SQL Server DBA
September 21, 2012 at 8:32 am
The question was poorly worded and I missed the total disk activity in edit.
The question has been corrected and points awarded back as of a few minutes ago.
September 21, 2012 at 9:03 am
Steve Jones - SSC Editor (9/21/2012)
The question was poorly worded and I missed the total disk activity in edit.The question has been corrected and points awarded back as of a few minutes ago.
Thanks Steve!
September 21, 2012 at 9:07 am
SP_WHO2 does not answer this ... it does not give you disk reads and writes. It gives their sums.
September 21, 2012 at 9:12 am
thadeushuck (9/21/2012)
SP_WHO2 does not answer this ... it does not give you disk reads and writes. It gives their sums.
Speaking of sums: The correct answers were 51% and those given credit for the bad wording of the question was 16% and the total correct answers is 96%!:rolleyes:
September 21, 2012 at 10:04 am
Nice easy question (now that the wording has been edited a little).
But sp_who2 is not very useful, and isn't documented anywhere as far as I can tell.
I used sp_who2 ages ago, and wrote a thing to replace it because sp_who2 didn't do quite what I wanted in some cases (I can't remember what that did, it was so long ago) but now I would use sp_WhoIsActive (available from Adam Machanic's blog) which is rather nice.
Tom
Viewing 15 posts - 16 through 30 (of 42 total)
You must be logged in to reply to this topic. Login to reply