i tried the following code:
const config = {
server: 'localhost',
database: 'MyDB',
user: *userName*,
password: *password*
const dbPool = new sql.ConnectionPool(config, err => {
if (err)
console.log(err)
else
console.log("success")
})
i created on the SSMS a user and a login, and did logged in with it to make sure it works. i changed the authentication from windows to SQL server. what am i missing?
I keep get this error message:
Login failed for user 'userNamr'.,
Code: 'ELOGIN'
errin else part. So that we can check.