sp_whoisactive filtering

  • I am experiencing difficulty filtering the results in the sp_whoisactive stored procedure when attempting to apply multiple filters. Can someone please provide assistance or guidance?

    Attachments:
    You must be logged in to view attached files.
  • Thanks for posting your issue and hopefully someone will answer soon.

    This is an automated bump to increase visibility of your question.

  • any updates from anyone?

  • Not a direct solution, but have you considered creating a temp table to hold the results of running sp_whoisactive, then doing an

    INSERT #SomeTable
    EXEC sp_whoisactive

    followed by whatever filtering you require? If it's something you do often, assign the entire thing to a KB shortcut.


  • I have a similar (same) issue.

    It says on the online docs that the filters are 'additive' but when I try to filter on 2 values it errors.

    I want to ONLY see SPIDs from a specific HOST with a specific LOGIN - but I can't seem to do that.

    Adding two filters in the exec generates an error because I specify the @filtertype twice with the 2 different values.

    So what does 'additive' mean - can you specify multiple filters for the same filter type but not multiple filter types maybe?

     

  • sp_whoisactive: Capturing the Output

    https://whoisactive.com/docs/25_capturing/

    I think that this shows why Phil's suggestion won't work sadly but may provide a solution for me.

     

  • Hi, have you tried this page?

    http://whoisactive.com/docs/09_deciding/

    HTH

    -- webrunner

    -------------------
    A SQL query walks into a bar and sees two tables. He walks up to them and asks, "Can I join you?"
    Ref.: http://tkyte.blogspot.com/2009/02/sql-joke.html

Viewing 7 posts - 1 through 6 (of 6 total)

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