You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to connect a locally-running application to a remote ms sql database using the following standard code.
The error is coming from connector.js line 31. Are they any more dependencies I would need to install?
var sql = require('mssql');
var config = {
user: '*******',
password: '******',
server: '****',
database: '**',
port: 1433
};
// connect to your database
Trying to connect a locally-running application to a remote ms sql database using the following standard code.
The error is coming from connector.js line 31. Are they any more dependencies I would need to install?
var sql = require('mssql');
sql.connect(config).then(() => {
return sql.query
select * from TestTable
}).then(result => {
console.log(result);
}).catch(err => {
// ... error checks
console.log("Connection Error");
console.log(err);
})
sql.on('error', err => {
// ... error handler
console.log(err);
})
sql.close();
The text was updated successfully, but these errors were encountered: