Solved

tool to calculate statistics on tsql SELECT query

Posted on 2013-11-09
3
628 Views
Last Modified: 2013-11-13
is there a tool that scan a big query and tell statistics as to how many SELECTs, GROUPS, how many columns retrieved to bring the results, how many joins, how many orders, distincts, how many rows read to bring the results etc.
0
Comment
Question by:25112
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 66

Assisted Solution

by:Jim Horn
Jim Horn earned 250 total points
ID: 39635776
I had a performance tuning class where the instructor introduced us to freeware SQL Sentry Plan Explorer , which allows you to see the multiple execution plans and various stats on multiple queries in a Stored Procedure.  Pretty damn handy.

I need to dig into this tool deeper.
Also, I think the freeware part has certain limitations, whereas when you purchase a license it has no limitations.

Good luck.
0
 
LVL 49

Accepted Solution

by:
PortletPaul earned 250 total points
ID: 39636421
"how many orders, distincts"...
yikes, hopefully only one order (at the end)

and distinct only ever used in a very limited way.
see: Select Distinct is returning duplicates ... look for the "Hail Mary Distinct"

"how many rows read to bring the results"
for this you do want the explain plan, and those numbers get displayed better using  SQL Sentry Plan Explorer
0
 
LVL 5

Author Comment

by:25112
ID: 39644795
will use it. thanks.
0

Featured Post

Major Serverless Shift

Comparison of major players like AWS, Microsoft Azure, IBM Bluemix, and Google Cloud Platform

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…
In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question