Rajesh

Friday, March 16, 2012

Find Most Blocked Queries and Sp's

SELECT
OBJECT_NAME(objectid)
,BlockTime = total_elapsed_time - total_worker_time
,execution_count
,total_logical_reads
FROM sys.dm_exec_query_stats qs
cross apply sys.dm_exec_sql_text(qs.sql_handle)
ORDER BY total_elapsed_time - total_worker_time DESC
Posted by Rajesh-Ramamoorthy at 12:45 AM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

collegue blog

  • Bala S
  • J Saravanan
  • logesh
  • Manoj HOV
  • poornima
  • shaalini blog

Blog Archive

  • ►  2019 (1)
    • ►  February (1)
  • ►  2017 (1)
    • ►  May (1)
  • ►  2016 (7)
    • ►  October (1)
    • ►  August (2)
    • ►  July (1)
    • ►  June (1)
    • ►  May (1)
    • ►  April (1)
  • ►  2014 (2)
    • ►  October (1)
    • ►  March (1)
  • ▼  2012 (16)
    • ►  December (1)
    • ►  April (3)
    • ▼  March (1)
      • Find Most Blocked Queries and Sp's
    • ►  February (9)
    • ►  January (2)
  • ►  2009 (10)
    • ►  June (4)
    • ►  May (3)
    • ►  April (2)
    • ►  January (1)
  • ►  2008 (35)
    • ►  November (1)
    • ►  September (15)
    • ►  July (19)

About Me

Rajesh-Ramamoorthy
View my complete profile

My hit rate

hit counter
free hit counter
Picture Window theme. Powered by Blogger.