title: How to debug MSSQL driver issues from Ubuntu
body: <p>Similar to another couple of questions I've seen, I'm in the dark place of having no choice other than to connect to MSSQL from Django.</p>
  
  <p>I'm intermittently (but around 50% of the time, the rest it works fine) getting the error;</p>
  
  <blockquote>
    <p>django.db.utils.Error: ('[08S01] [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error code 0x274c (10060) (SQLGetData)')</p>
  </blockquote>
  
  <p>Note, I also get this one sometimes;</p>
  
  <blockquote>
    <p>django.db.utils.Error: ('08S01', '[08S01] [Microsoft][ODBC Driver 13 for SQL Server]TCP Provider: Error code 0x68 (104) (SQLGetData)')</p>
  </blockquote>
  
  <p>I think it's network related, I've previously tried swapping out <code>pyodbc</code> versions, swapping between <code>FreeTDS</code> and Microsoft driver for unix, and trying <code>pyodbc</code> and <code>pyodbc-azure</code>.</p>
  
  <p>The machines in question are Vagrant boxes on a private network with fixed IPs (Ubuntu 16.04 and Windows 8), SQL Server is SQL Server Express 2016.</p>
  
  <p>I can't even work out how to find a more detailed log on the Windows side to work out why/how it keeps dropping/closing the connection. Note - I've looked in the SQL Server and Windows event logs and they don't seem to be picking anything up.</p>