mssql-cli
mssql-cli copied to clipboard
unable to connect mssql from Linux centos
I am trying to connect for automation from Linux centos VM to windows MSSQL servers below .
mssql-cli -S XXXXXXX,1433 -U pamus-adm -d
user account(pamus-adm) has access. I am able to log in manually. How to troubleshoot and fix. Please help.
It looks like you may be using a Windows-style server argument whereas Linux just uses hostname. Try -S localhost
if you're running it from the database server.