Link to home
Start Free TrialLog in
Avatar of Manir Hossen
Manir Hossen

asked on

How to identify slow running queries in SQL Server and how to resolved it

How to identify slow running queries in SQL Server and how to resolved it
Avatar of David Todd
David Todd
Flag of New Zealand image

Hi,

There are a couple of places you can look.

There are builtin-report in SSMS for top queries.

Or you can get Brent Ozar's First Responders kit and use sp_BlitzCache for insight into what is in the query plan cache, you'll get things like missing indexes etc.

HTH
  David
Hi,

Check out this blog on how to identify slow running queries in SQL Server.

Also as David mentioned use the Brent Ozars First responder kit. It is a very useful package full of scripts and checklists.

Ones you have identified the queries you have to execute explain on them to see where you could tune it either by adding indexes or tweak the part of the query that is producing bad access paths. Access paths especially where full table scans are shown should obviously be the first to tackle and eliminate.

Regards,
    Tomas Helgi
Hi,

Do you need more help on this ?

Regards,
    Tomas Helgi
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.