var Connection = require('tedious').Connection;
var Request = require('tedious').Request;
// Create connection to database
var config = {
database: "TestDb",
server: "localhost",
userName: 'TestUser',
password: '12345678aA',
//driver: "msnodesqlv14",
options: {
encrypt: false
}
};
var connection = new Connection(config);
connection.on('connect', function (err) {
if (err) {
console.log(err);
}
else {
queryDatabase();
}
}
);