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
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Query tunning

Author  Topic 

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2010-04-14 : 04:39:10
Dear All,

I have a query which was running fine till now by taking 2 minutes.Suddenly its taking 30 minutes to complete.
I need to look for initial investigation.

Can you please tell me basic and advanced checks i can do to make it run as it was running earlier.

Thanks,
Gangadhar

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-04-14 : 04:46:59
Analyse Execution plan and try to remove index scans.

Vaibhav T

To walk FAST walk ALONE
To walk FAR walk TOGETHER
Go to Top of Page

gangadhara.ms
Aged Yak Warrior

549 Posts

Posted - 2010-04-14 : 04:54:16
I need little bit more info on how we can remove index scan
Any link will be helpfull.
Go to Top of Page

Sachin.Nand

2937 Posts

Posted - 2010-04-14 : 05:27:34
Is it a query or a stored procedure?

PBUH
Go to Top of Page

Transact Charlie
Master Smack Fu Yak Hacker

3451 Posts

Posted - 2010-04-14 : 07:41:41
Try google:

First two results for "optimising stored procedures"

are:
http://www.sql-server-performance.com/articles/per/query_tuning_p1.aspx
http://www.sql-server-performance.com/articles/per/optimizing_sp_recompiles_p1.aspxa


Charlie
===============================================================
Msg 3903, Level 16, State 1, Line 1736
The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION
Go to Top of Page

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2010-04-15 : 06:24:13
[url]http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/[/url]
[url]http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/[/url]

--
Gail Shaw
SQL Server MVP
Go to Top of Page
   

- Advertisement -