Sql Server 2000 - How can I find out what stored procedures are running currently?

前端 未结 5 965
青春惊慌失措
青春惊慌失措 2021-01-18 08:05

I\'d like to know what stored procedures are currently running to diagnose some performance problems. How can I find that out?

5条回答
  •  耶瑟儿~
    2021-01-18 08:56

    DBCC INPUTBUFFER will show you the first 255 characters of input on a spid (you can use sp_who2 to determine the spids you're interested in). To see the whole command, you can use ::fn_get_sql().

提交回复
热议问题