how to identify which user is running query and how long is it running?

  • how to identify which user is running query and how long is it running?

  • grab a copy of sp_whoisactive here:

    http://sqlblog.com/blogs/adam_machanic/archive/2012/03/22/released-who-is-active-v11-11.aspx

    from there, you need to look at the parameters, but for example running this:

    EXEC sp_whoisactive

    @show_own_spid =1,

    @show_sleeping_spids =1

    will show me a lot of information of what is running right now , and i can evaluate whether someone is using a lot of CPU, disk, or whatever.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 2 posts - 1 through 1 (of 1 total)

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