SQL Script to find out 5 biggest transaction that uses internal objects

Leave a comment (0) Go to comments

SQL Script to find out 5 biggest transaction that uses internal objects

-- ******************************************** */
-- Description                                  */
-- ============                                 */
-- Script to check the biggest transaction      */
-- that are using internal objects              */
-- If it is for internal objects (tempdb        */
-- issues), use the script bellow. It lists     */
-- the top 5 sessions.                          */
-- =============================================*/
-- Compatibility  :     2005+                   */
-- ******************************************** */
SELECT top 5 * 
FROM sys.dm_db_task_space_usage
ORDER BY (user_objects_alloc_page_count 
  + internal_objects_alloc_page_count) desc
go

EOF - SQL Script to find out 5 biggest transaction that uses internal objects, SQL Server 2012 , 2008 R2 , 2008 , 2005 , 2000

Leave a Reply

Your email address will not be published. Required fields are marked *


*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.