进程信息里的进程ID;可以看见运行的是什么查询
能不能知道是那台机器在运行(我想查找到堵塞的进程----是那台电脑)还有就是进程状态---backgroup,sleeping ,runnable
是什么意思?
           谢谢

解决方案 »

  1.   

    sp_who 
    结果中的hostname是主机名!
      

  2.   

    好象只能看见自己的hostname
    查看别人的就不行呀
    要的就是看别人的,好判断错误,抓‘元凶’
      

  3.   

    Try to run sp_who2/sp_who in your query analyzer before expressing your opinion here
      

  4.   

    --取巧下
    xp_cmdshell 'netstat -a'
      

  5.   

    哦,是sp_who2   id-----我先用的是sp_who  id
                  对不起
    谢谢,谢谢
      

  6.   

    或者:
     select * from master..sysprocesses
      where spid = @spid我想里面有你要的内容
      

  7.   

    或者:
     select * from master..sysprocesses
      where spid = @spid我想里面有你要的内容