how do i view what sprocs are runing and their status

  • is there a way i can monitor all the sprocs that are running on a server , and their status, rather than use a simple trace? is there a tool in sql server 2005 for monitoring of performance, sprocs & objects in memory, locks and various other things??

  • This was removed by the editor as SPAM

  • The best thing to start with is probably "sp_who" or "sp_who2". That will at least show you what processes are running in SQL and whether there is any blocking going on. There are ways to find out what statement a particular process is working on.

    DBCC INPUTBUFFER (spid) -- replace spid with the actual numeric value

    or

    DECLARE @handle binary(20)

    SELECT @handle = sql_handle FROM master..sysprocesses

    WHERE spid = SPID -- replace with actual numeric value

    SELECT [text] FROM ::fn_get_sql(@handle)

  • the sp_Who provides the info i need.thank you for your reply.

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply