I got a error message when I connect to SQL Server with mssql
module for node.js.
[Error: connection to 192.168.1.101\sql:1433 - failed Error: getaddrinfo ENOENT]
var config = {
//driver: 'msnodesql',
user: '...',
password: '...',
server: '192.168.1.101\\sql',
//TCP/IP 127.0.0.1
database: 'ACCOUNTDB'
};
You should be able to connect to named instance when using tedious driver with this config:
Documentation also says:
Config for msnodesql driver is little more complicated because it's connection string doesn't support named instances by default (should change in future):