SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 SP tuning
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gangadhara.ms
Aged Yak Warrior

India
547 Posts

Posted - 09/19/2013 :  03:08:52  Show Profile  Reply with Quote
Hi Experts,
We have one stored proc which is taking more than 1 hour to complete,i need to identity the cause why its taking so long to run.

Please do share any useful links.






Thanks,
Gangadhara MS
SQL Developer and DBA

SwePeso
Patron Saint of Lost Yaks

Sweden
30265 Posts

Posted - 09/19/2013 :  07:10:05  Show Profile  Visit SwePeso's Homepage  Reply with Quote
You should enable Actual Execution Plan and see where resources are used.



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3707 Posts

Posted - 09/19/2013 :  08:48:17  Show Profile  Reply with Quote
Microsoft's documentation on query tuning is quite good. http://technet.microsoft.com/en-us/library/ms176005(v=sql.105).aspx

You should also check to make sure that your database is properly maintained - i.e., statistics are upto date and any fragmented indexes are reorganized/rebuilt.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000