Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 troubleshooting

Author  Topic 

tapaswani86
Starting Member

26 Posts

Posted - 2010-11-21 : 23:13:44
Hi,

How can we troubleshoot slow performing query and stored procedure.

Thanks and Regards,
Tapaswani

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-21 : 23:34:14
There are many ways to troubleshoot performance issues. Here are some of them:

1. SQL Profiler
2. Server-side trace
3. Examining execution plans
4. Running missing indexes/unused indexes report
5. Checking statistics and fragmentation
6. Checking blocking

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-11-24 : 09:36:38
the common way to start from developer perspective is by analysing the execution plans.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-11-24 : 10:45:57
That's on my list already.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2010-11-24 : 12:01:07
First, make sure the server is on

Is there one particular piece of code you are interested in, or just in general...

I would do a trace myself if you don't know the offending code

I also recommend logging the sprocs calls...wait...you ONLY allow sproc access to the data...right?



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx


Want to help yourself?

http://msdn.microsoft.com/en-us/library/ms130214.aspx

http://weblogs.sqlteam.com/brettk/

http://brettkaiser.blogspot.com/


Go to Top of Page
   

- Advertisement -