Search code examples
sql-serversql-server-expresstedious

How to allow SQL Server authentication in SQL Server 2017 Express?


I'm currently using node-mssql that uses tedious as it's adapter for connecting to a SQL Server database. I'm trying to get it to connect to my local SQL Server 2017 Express instance.

After figuring out that my Express server wasn't functioning on port 1433, I am now trying to make it so my SQL Server Express accepts SQL Server authentication, but no matter what I do, I can not seem to find a way for it to do so. I can not also get the instance to connect using local machine either.

I have tried using all of the possible options and then attempting to login using my user I created alongside my local machine account that is associated with the database or server.

https://puu.sh/zb1rW/0b02035887.png

Log on in SQL Server 2017 Express

Error Message from tedious

Where am I going wrong here?


Solution

  • You'll have to enable SQL Server authentication if you didn't select Mixedmode during install.

    In Management Studio, right click on server -> Properties -> Security

    enter image description here

    (OP): Okay turns out I needed to enable permission over the table to the SQL user, could you slightly update your answer and I'll accept it, many thanks.