Random timeout running a stored proc - drop recreate fixes
So I work with a largish database (30 gig) sql 2005 with a .net 3.5 web front end on a 10 year old system. It has new and old bits We are getting a problem that is happening more and more frequently. A stored proc (we've had 4 different ones so far) decides that it will timeout. The call is happening from the webserver and hits the 30 sec timeout and logs to our error log. The website uses a single login (I know this is wrong but it cannot be changed due to legacy code). Just after this I run the exact same call and it takes (logged in as me) 1 sec. The issue remains on this one stored proc