Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 Administration
»
Database Timeouts : Error -2 Severity 11
Database Timeouts : Error -2 Severity 11
Rate Topic
Display Mode
Topic Options
Author
Message
SQL Pizza
SQL Pizza
Posted Friday, March 08, 2013 5:34 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 6:13 AM
Points: 116,
Visits: 298
Hi Folks,
at times with heavy workload, my devs tell me they receive a lot of database timeouts. A the database I got 2 stored procs which get heavily executed. If I run the queries at ssms they take about 1000 ms. The execution plan looks good. But the cpu goes up to 100% and I got a lot of SOS_SCHEDULER_YIELDS. I've allready gone through all the points of chapter 3 in the book "the accidental dba", but none of the reasosn fit. Why is the query so ressource intensive?
Greetz
SQL Pizza
sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1428535
anthony.green
anthony.green
Posted Friday, March 08, 2013 5:39 AM
SSCertifiable
Group: General Forum Members
Last Login: Wednesday, June 05, 2013 2:40 AM
Points: 5,075,
Visits: 4,833
Can you disclose the procedures, tables, indexes, execution plans and any other information related to the objects in question so that we can take a look.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1428536
GilaMonster
GilaMonster
Posted Friday, March 08, 2013 5:45 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 12:31 PM
Points: 38,091,
Visits: 30,384
Please post table definitions, index definitions and execution plan, as per
http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
Also note that you need to tune your workload, not your individual queries.
http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-1/
http://www.simple-talk.com/sql/performance/finding-the-causes-of-poor-performance-in-sql-server,-part-2/
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1428537
SQL Pizza
SQL Pizza
Posted Monday, March 11, 2013 10:01 AM
SSC-Enthusiastic
Group: General Forum Members
Last Login: Yesterday @ 6:13 AM
Points: 116,
Visits: 298
Seems to be gone...weird...I'd come back with all the info, when the problem would emerge again. Thanks!
Greetz
SQL Pizza
sometimes you dont see the pizza for the toppings...
seek and ya shall find...
Post #1429364
colin.Leversuch-Roberts
colin.Leversuch-Roberts
Posted Monday, March 11, 2013 10:46 AM
SSCrazy
Group: General Forum Members
Last Login: Thursday, May 16, 2013 2:10 PM
Points: 2,668,
Visits: 688
running in SSMS isn't always the same as running from an application, the set options might be different for example.
if it's only a couple of procs why not profile to capture the stats when they run - you could also extract the plan from cache when it's bad and compare to the plan you get when you run it.
Sorry don't have the book so have no idea what all the steps there might be.
probably a silly question but the procs don't start sp_ ??
The GrumpyOldDBA
www.grumpyolddba.co.uk
http://sqlblogcasts.com/blogs/grumpyolddba/
Post #1429401
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.