I m operating on Windows Server 2008 and I want to connect my application to a local SQL Server database .
I have read this: https://codedark.xyz/blog/connecting-to-ms-sql-server-with-knex
I have enabled TCP/IP connections to the server as well as default port 1433 for SQL Server. I then restarted the server instance.
I'm trying to connect with Windows authentication and my connection string looks like this :
mssql: {
client : "mssql",
connection: {
server : "localhost",
user : "windowsusername",
password : "windowspassword",
options: {
port: 1433,
database : "mydb",
encrypt: true
}
},
}
I get this error :
Login failed for user 'windowsuser'
My question: is it possible to connect to a local SQL Server database using Windows authentication? And if yes, which are the right credentials?