MSSQL EXPRESS 2008 Stored Procedure execution time spikes periodically

Posted by user156241 on Stack Overflow See other posts from Stack Overflow or by user156241
Published on 2010-05-13T00:16:02Z Indexed on 2010/05/13 0:24 UTC
Read the original article Hit count: 702

Filed under:
|
|
|
|

I have a big stored procedure on a MSSQL 2008 Express SP2 database that gets run about every 200 ms. Normal execution time is about 50ms. What I am seeing is large inconsistencies in this run time. It will execute for while, say 50-100 times at 40-60ms which is expected, then seemingly at random the same stored procedure will take way longer, say 900ms or 1.5 seconds to run. Sometimes more than one call of the same procedure in a row will take longer too.

It appears that something is causing sql server to slow down dramatically every minute or so, but I can't figure out what. There is no timing pattern between the occurences.

I have the same setup on two different computers, one of which is a clean XP Pro load with no virus checking and nothing installed except SQL server.

Also, The recovery options for all the databases are set to "Simple".

© Stack Overflow or respective owner

Related posts about mssql

Related posts about 2008