Capturing workload for analysis

  • Hi.

    I'd like to capture all queries executed against my database to be able to make the right index need decisions.

    I'm familar with Profiler and SQL Trace and also saw the possiblity to use extended events, but the optimal solution would be something that aggregates me the queries and writes out the repeatedly requeries only once, so I get an aggregated view.

    Would it be enough to analyse the sql_handles from the sys.dm_exec_query_stats_cache or is there maybe a DMV for that?

    I need to capture the workload for a long period of time, because same actions happen f.e. only monthly...

    Could anybody help me how I could realize it to get an overview over all queries for a long time, which aggregates the same queries and let's me order after tables or other measures?

    Greetz
    Query Shepherd

  • http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/

    http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/

    DMVs can miss queries because of plan removal or plans never cached.

    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
  • Thanks Gail, I just wanted to post, that I found your articles...to complete it...I found the answers here :

    This Why the DMVS are not a replacement for sql trace[/url] led mo to this Finding the causes of poor performance in sql server[/url] which led me to this A SQL Profiler trace swiss army knife.

    Thanks Gail! Again I didn't se the wood for the trees!

    So this is the way...or is there anything now that makes life easier, f.e. templates for sql nexus, dbdiag or something like retrace which helps with this task? Data Management Warehouse?

    Greetz
    Query Shepherd

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

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