title: How to Troubleshoot Intermittent SQL Timeout Errors
body: <p>We've been having a few instances per day where we get a slew of SQL Timeout errors from multiple applications (System.Data.SqlClient.SqlException: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.)  We have over 100 different applications on our network, both web and desktop apps.  Everything from VB6 and Classic ASP to .NET 4.  I can find all kinds of data that show the side effects but can't pinpoint what is causing this.  Our DBA says nothing is wrong with the SQL server, and IT says there's nothing wrong with the web servers or network, so of course I'm left in the middle trying to troubleshoot this.</p>
  
  <p>I'm really just looking for suggestions on what other troubleshooting I can do to try and track this down.</p>
  
  <p>We're running SQL Server 2008 R2 in a cluster.  There's a handful of different servers that connect to it, ranging from Windows server 2003 to 2008 of different varieties.</p>
  
  <p>Here's what I've done so far:</p>
  
  <ul>
  <li><strong>Run SQL trace of long running queries and deadlocks.</strong>  This shows no deadlocks at the times of the problems, and long running queries all coincide with our timeout errors, but look to be a side effect, and not the cause.  Queries that are very basic that typically return instantly end up taking 30, 60 or 120 seconds to run at times.  This happens for a few minutes then everything picks up and works fine after that.</li>
  <li><strong>Use performance monitor to track connection pool connections.</strong>  This sometimes shows some spikes in the number of connections near the times of the timeouts, but still not even halfway to the default 100 connection limit. Again, nothing here that seems to point to a cause.</li>
  <li><strong>Separate web applications into different App Pools.</strong>  We tried to narrow down the apps we thought may be the main problem (most chatty, etc) and put them in separate Application Pools but that doesn't seem to affect anything or help us narrow down anything.</li>
  <li><strong>Monitor disk usage on SQL Server.</strong> We've done some monitoring on the SQL server and see no spikes or any signs of problems when these timeouts are occurring.</li>
  <li><strong>Verified TempDB</strong> was not the cause of the problem.</li>
  </ul>
  
  <p>I'll come back and add more if I think of what else we've tried.  Please let me know some ideas on what to troubleshoot next.</p>