Identify SPID with highest tempdb Usage

  • I have a job that looks at tempdb space usage and sends me an email when the tempdb data file size has exceeded a threshold.

    I have had some users running big queries and filling up tempdb in the past.

    What I want to do in this situation is identify what spid is currently running that is using the most space in tempdb as I may have to kill it or inform user right away.

    Steve

  • This one should do:

    http://www.sqlservercentral.com/scripts/tempdb/72007/

    Hope this helps

    Gianluca

    -- Gianluca Sartori

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

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