Cannot connect to sql server in different system of the same network

Brass Contributor

Hi All,

I just want to connect a server which is not in my system but in same network by using CMD,

when i connect in SSMS, there was no problem.

The Error Message showing in CMD is : 'Sqlcmd: Error: Microsoft ODBC Driver 17 for SQL Server : Login failed. The login is from an untrusted do'main and cannot be used with Integrated authentication..'



Does Anyone Have Idea behind this?


2 Replies
Do you use the same authentication mode Windows/SQL & same credentials for SSMS as for SqlCmd?
I tried the same authentication mode