title: Is it possible to change default OLEDB connection timeout value? Run-time error (80040e31)
body: <p>I have one legacy app (VB) and I have an issue with the timeout error while connecting to SQL Server (probably through OLEDB).</p>
  
  <p><img src="https://i.stack.imgur.com/ArAgO.png" alt="enter image description here"></p>
  
  <p>Using SQL Profiler I figure out that the connection is dropped through exactly 30 seconds.</p>
  
  <p><img src="https://i.stack.imgur.com/2LYEy.png" alt="enter image description here"></p>
  
  <p>I don't have access to the source codes but I scanned exe resources and couldn't find any hardcoded connection string timeout values there.</p>
  
  <p>The last chance I think I have is to change the default OLEDB timeout somewhere outside the app.</p>
  
  <p><strong>My question is: it is possible to change default OLEDB timeout value?</strong></p>
  
  <hr>
  
  <p>UPDATE</p>
  
  <p>I found the connection string and changed timeout to 300 but it does not help...</p>
  
  <pre><code>Provider=SQLOLEDB.1;Persist Security Info=False;User ID=______;Password=______;Initial Catalog=________;Data Source=______;Connect Timeout=300
  </code></pre>
  
  <p>After that I tried to replace current connection string with connection strings from different providers: <strong>ADO.NET</strong> and <strong>ODBC</strong> but every time I get an timeout error after 30 seconds - checkmate.</p>
  
  <p>P.S.</p>
  
  <p>I'll be happy to any advice</p>