-
Notifications
You must be signed in to change notification settings - Fork 295
Description
Node.js Version: 12.3.1
OS: Windows
Scope: Code
Module (and version): studentWebsite
I am facing difficulties of connecting my web apps to my MSSQL database.
After compiling program in Visual Studio 2017, once starting my program, it comes out with this error.
"Error while connecting to database :- ConnectionError: Login failed for user 'mylocal'."
The Google chrome web browser appears to have the following error.
{"code":"ELOGIN","originalError":{"message":"Login failed for user 'mylocal'.","code":"ELOGIN"},"name":"ConnectionError"}
For your information, I used NodeJS version 12.3.1, Express JS with version 14.7.1, and MSSQL with version 5.1.0.
I've located my source code inside my public GITHUB as following address.
https://github.com/yeehengoh/studentNodes
In my db.js, my connection string is written as below.
const db =
{
user: "mylocal",
password: "my123",
server: "localhost\LocalDBDemo",
database: "studentData",
port: 1433
};
module.exports = db;
Not so sure is there anything wrong with my setting over here, and i've also attached the snapshot for database's SQL server authentication.
Please help on that. Thanks...