title: Sql connection waits 15 seconds despite 3 seconds timeout in connection string
body: <p>I have a website using Microsoft SQL 2008 server over local network. Sometimes, SQL server machine is rebooted, and so the website fails to connect to the database. If the machine is up and running, it <em>will</em> respond fast. If it's down, there is no need to wait for 15 seconds. 3 seconds are ok.</p>
  
  <p>I want to display apologizes on the website when the database is not reachable, and want to do it fast. But setting <code>Connection Timeout=3</code> in connection string seems having no effect. The page spends 22 seconds to wait before throwing <code>SqlException</code> on <code>SqlConnection.Open();</code>.</p>
  
  <p>What's wrong with it? May it be a hidden configuration which overrides the timeout?</p>
  
  <p>Currently, my connection string is</p>
  
  <pre><code>Data Source=...;
  Initial Catalog=...;
  Integrated Security=True;
  Connection Timeout=3
  </code></pre>
  
  <p>If I set it to <code>...;ConnectionTimeout=3</code> (without space),</p>
  
  <pre><code>System.ArgumentException: Keyword not supported: 'connectiontimeout'.
  </code></pre>
  
  <p>is thrown (strange, <a href="http://msdn.microsoft.com/en-us/library/fxc5zhxy.aspx#remarksToggle" rel="noreferrer">MSDN documentation</a> indicates that we can use both strings).</p>