Tediousを使用してローカル SQL Express サーバーに接続しようとしていますが、取得し続けます
failed Error: getaddrinfo ENOTFOUND
ここで間違ったアドレスを使用していますか?
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();
}
);