help on perf DMVs

  • Hi ,

    Can anybody share dmv queries to achieve the following ?

    1. Query to capture frequently used stored procedure

    2. Query to capture frequently used ad-hoc queries

    3. Query to capture worst performing stored procedures

    4. Query to capture worst performing queries

    Thanks in Advance.

  • Play around with sys.dm_exec_query_stats for all of those and be aware that you may well not be getting the full picture.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Okay. Thank you Gail.

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

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