ODBC SQL Server Driver Login timeout expired
<p>I'm failing to connect to a SQL server SQLExpress. The connection worked fine a few days ago.
This is how I tried to connect (I'm using Microsoft SQL server management studio):</p>

<pre><code>connection = pyodbc.connect("DSN=sqlServer; UID=myuser;PWD=mypassword") 
cursor = connection.cursor()
</code></pre>

<p>The error I get: </p>

<blockquote>
  <p>('HYT00', '[HYT00] [Microsoft][ODBC SQL Server Driver]Login timeout expired (0) (SQLDriverConnect)')</p>
</blockquote>

<p>In the ODBC Data Source Administrator, when I test the data source I get:</p>

<p><a href="https://i.stack.imgur.com/54WVX.png" rel="noreferrer"><img src="https://i.stack.imgur.com/54WVX.png" alt="enter image description here"></a></p>