April 30, 2014 at 4:32 pm
Query tuning is a complex art, but Grant Fritchey's book on execution plans is a good resource to start with. It's available as a free pdf here:
http://www.red-gate.com/community/books/sql-server-execution-plans-ed-2
May 1, 2014 at 11:33 am
You can do this to get the plan:
SELECT
DEQP.query_plan
FROM
sys.dm_exec_query_stats AS DEQS
CROSS APPLY sys.dm_exec_query_plan(DEQS.plan_handle) AS DEQP
WHERE
[some criteria to determine what is long running]
Then you can examine the execution plan to determine where/what to start stuning.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 1, 2014 at 11:36 pm
Thank u All.....
is there any Video Links for that Query Tuning...
Regards
Chowdary...
May 1, 2014 at 11:54 pm
You can find lots on google. Select as per your need.
---------------------------------------------------
"Thare are only 10 types of people in the world:
Those who understand binary, and those who don't."
May 2, 2014 at 11:16 am
I got some good tuning tips from this Brent Ozar video:
http://www.brentozar.com/archive/2014/01/watch-brent-tune-queries/
Viewing 5 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply