Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. how to use sp_who2 and where should i put it to check ?

how to use sp_who2 and where should i put it to check ?

Scheduled Pinned Locked Moved Database
helptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    skyleo_2008
    wrote on last edited by
    #1

    thank for willing help

    S 1 Reply Last reply
    0
    • S skyleo_2008

      thank for willing help

      S Offline
      S Offline
      squattyarun
      wrote on last edited by
      #2

      The sp_who2 internal procedure provides the following information: Spid—The system process ID. status—The status of the process (e.g., RUNNABLE, SLEEPING). loginame—Login name of the user. hostname—Machine name of the user. blk—If the process is getting blocked, this value is the SPID of the blocking process. dbname—Name of database the process is using. Cmd—The command currently being executed (e.g., SELECT, INSERT) CPUTime—Total CPU time the process has taken. DiskIO—Total amount of disk reads for the process. LastBatch—Last time a client called a procedure or executed a query. ProgramName—Application that has initiated the connection (e.g., Visual Basic, MS SQL Query Analyzer) You can use them.

      Arun Singh Noida.

      S 1 Reply Last reply
      0
      • S squattyarun

        The sp_who2 internal procedure provides the following information: Spid—The system process ID. status—The status of the process (e.g., RUNNABLE, SLEEPING). loginame—Login name of the user. hostname—Machine name of the user. blk—If the process is getting blocked, this value is the SPID of the blocking process. dbname—Name of database the process is using. Cmd—The command currently being executed (e.g., SELECT, INSERT) CPUTime—Total CPU time the process has taken. DiskIO—Total amount of disk reads for the process. LastBatch—Last time a client called a procedure or executed a query. ProgramName—Application that has initiated the connection (e.g., Visual Basic, MS SQL Query Analyzer) You can use them.

        Arun Singh Noida.

        S Offline
        S Offline
        skyleo_2008
        wrote on last edited by
        #3

        thank for your reply.Thank a lot

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups