I am new to node.js and I am trying to connect to intersystems-cache . Here is what I have, based on the sample code in the docs:
var sql = require('mssql'); console.log("Connecting..."); sql.connect("mssql://username: password@server :1234/DB").then(function(){ console.log("connected"); }).catch(function(err) { console.log(err) });
If I put the wrong server or port, I get a Failed to connect error, but no matter what else I entered incorrectly (username, password, db), I get zero output. More importantly, when all the data is correct, I never get connected output.
Is it a compatibility issue with Cache and the mssql library? Or am I doing something wrong?
source share