Tracking Processes

  • Is sp_processdetails actually a thing?

    Ron

    -----
    a haiku...

    NULL is not zero
    NULL is not an empty string
    NULL is the unknown

  • ronmoses (9/21/2012)


    Is sp_processdetails actually a thing?

    Nope!


    Hugo Kornelis, SQL Server/Data Platform MVP (2006-2016)
    Visit my SQL Server blog: https://sqlserverfast.com/blog/
    SQL Server Execution Plan Reference: https://sqlserverfast.com/epr/

  • 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]

  • Apparently, not everyone thinks that sp_who2 is total disk I/O (reads and writes).

    http://www.devx.com/tips/Tip/14208

  • Stephen_W_Dodd (9/21/2012)


    Apparently, not everyone thinks that sp_who2 is total disk I/O (reads and writes).

    http://www.devx.com/tips/Tip/14208

    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

  • I agree, Rich. Just pointing out where some of the confusion may have originated. 🙂

  • Good way to end the week! Thanks.

  • 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:

  • 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.

    Simone
  • 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

  • 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.

  • 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!

  • SP_WHO2 does not answer this ... it does not give you disk reads and writes. It gives their sums.

  • 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:

  • 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