Login Failed. the Login Is from an Untrusted Domain and Cannot Be Used with Windows Authentication

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication on one machine only

  1. Make sure your are using the correct username AND password when using runas.
  2. Make sure you are using /netonly in your runas command

OR


  1. If you are choosing to not use /netonly and are relying on Windows Credential Manager ensure the credentials you are relying on to connect are still valid. Perhaps your password has changed since you returned from vacation?

See answer by Mister Magoo for more information on using runas https://dba.stackexchange.com/questions/66014/connect-to-sql-server-with-windows-authentication-in-a-different-domain

Microsoft SQL Server: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.

Solved it.
it was because my PC name and Windows User was in Hebrew, changed it to English and it worked.
also, check in the sql server path there aren't any folders named in Hebrew
Thank you, everyone, who helped. :)

Login failed. The login is from an untrusted domain and cannot be used with Windows authentication in c# application

You need to remove Integrated Security=true; from the connection string. This is telling your application to use your Windows credentials instead of the username and password you are supplying.



Related Topics



Leave a reply



Submit