Q:

getaddrinfo ENOTFOUND when using tedious in node.js

I'm trying to connect to a local SQL Express server using Tedious but keep getting
failed Error: getaddrinfo ENOTFOUND

Am I using the wrong address here?
  var Connection = require('tedious').Connection;

  var config = {
    userName: 'sa',
    password: 'mypassword',
    server: 'LOCALHOST\\SQLEXPRESS',
  };

  var connection = new Connection(config);

  connection.on('connect', function(err) {
    // If no error, then good to go...
      if(err) {
        console.log(err);
        return;
      } 
      executeStatement();
    }
  );

A:

"Microsoft style strings of hostname\instancename are not supported."
   - pekim

I posted the same issue on github and here is the full answer: https://github.com/pekim/tedious/issues/118

