I am able to connect to remote sql server using SQLpro for MSSQL. However, When I am trying to use tsql to connect, i am not able to connect to the database
OS: Macos x
My freetds.conf path: /usr/local/freetds.conf
[global]
# tds protocol
tds version =8.0
[MyserverName]
host = sqlservername
port = 1433
tds version = 8.0
When I run tsql command it is throwing me an error commands as follows:
tsql -S MyserverName -p 1433 -U username -P password
or
tsql -H sqlserver -p 1433 _U username -P password
Below are the errors, when I tried to play with above commands
MSG 18452 (severety 14, state 1):
"Login failed. The login is from an untrusted domain and cannot be used with windows authentication"
Error 20002(severity 9):
"Adaptive Server connection failed"
I believe that sqlpro uses jdbc driver to connect to sqlserver, but however, I think this should even work.
Any suggestions?