December 22, 2016 at 7:29 am
Hello,
Can someone help me with script of finding transactions which are heavily using temdb space in their queries.
Thanks in advance
December 22, 2016 at 7:36 am
Have you looked at sp_whoisactive?
John
December 22, 2016 at 7:44 am
This is something like I need to send an email alert every hour so DBA team can look into the usage of Tempdb on hourly basis. The sp gives info only for that session and I can't use for my alert i guess.
December 22, 2016 at 7:48 am
It gives info for all active sessions. If you have the patience, you can look at the stored procedure definition and try to find the part that retrieves tempdb usage, and see if you can use that as a basis for something to fit your requirement.
John
December 22, 2016 at 8:01 am
Due to my access restrictions, I can't use that and I don't need that much detailed level of informtion. Is there any other script that I can use to send email alerts on which query is consuming tempdb much..
December 22, 2016 at 8:26 am
If you have such restricted access it sounds as though you're not the DBA, so you can probably hand that task over to whoever is.
December 22, 2016 at 8:43 am
December 27, 2016 at 10:00 pm
December 28, 2016 at 9:17 am
Beatrix Kiddo (12/22/2016)
If you have such restricted access it sounds as though you're not the DBA, so you can probably hand that task over to whoever is.
Heh... +1 million to that. I was going to suggest that the DBAs learn how to be DBAs.
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply