title: Connection timeout in ODBC
body: <p>I know that I can set the connection timeout for MS SQL Server when using ADO or OLE DB, by adding <em>Connect Timeout=somevalue</em> to the connection string.</p>
  
  <p>This doesn't seem to work for ODBC connections though. Specifically, we made the decision to use the standard SQL Server ODBC driver that ships with Windows XP (SQLSRV32.DLL version 2000.85.1132.00) instead of the newer SQL Native Client and it is with this driver that the connection always times out on 15 seconds, irrespective of the <em>Connect Timeout</em> setting.</p>
  
  <p>Also, when it times out, I get two errors. The first is the timeout and the second is "Invalid connection string attribute" so I guess Connect Timeout is not what I need. The final clue that I'm missing the plot, came from this somewhat dated article: <a href="http://msdn.microsoft.com/en-us/library/ms811006.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms811006.aspx</a></p>
  
  <p>Does anyone know if there is a way to specifiy the connection timeout in the connection string for the standard SQL Server ODBC driver?</p>