Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Capturing workload for analysis Expand / Collapse
Author
Message
Posted Tuesday, April 23, 2013 2:04 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, October 22, 2014 1:52 AM
Points: 120, Visits: 368
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
SQL Pizza



sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1445307
Posted Tuesday, April 23, 2013 2:19 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 8:19 AM
Points: 40,208, Visits: 36,617
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 2008, MVP
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

Post #1445309
Posted Tuesday, April 23, 2013 2:26 AM


SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Wednesday, October 22, 2014 1:52 AM
Points: 120, Visits: 368
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 led mo to this Finding the causes of poor performance in sql server 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
SQL Pizza



sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1445312
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse