title: Node.js MSSQL tedius ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED
body: <p>I am trying to connect to MSSQL 2012 using NodeJS with the <a href="https://patriksimek.github.io/node-mssql/">mssql</a> connection interface. </p>
  
  <p>When attempting to connect I get the following error:</p>
  
  <pre><code>{ [ConnectionError: Failed to connect to localhost:1433 - connect ECONNREFUSED]
    name: 'ConnectionError',
    message: 'Failed to conncet to localhost:1433 - connect ECONNREFUSED',
    code: 'ESOCKET' }
  </code></pre>
  
  <p>Any ideas on how to fix this?</p>