Login failed. The login is from an untrusted domain and cannot be used with Windows authentication on one machine only
- Make sure your are using the correct username AND password when using runas.
- Make sure you are using /netonly in your runas command
OR
- 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
What Is the Resource Impact from Normalizing a Database
Selecting Top N Elements of a Group in Oracle
How to Update a Blob in SQL Server Using Tsql
Find Most Common Elements in Array with a Group By
Get Envelope.I.E Overlapping Time Spans
Dynamic Column in Select Statement Postgres
Oracle (11.2.0.1.0) - Recursive Cte with a Date Expression
SQL Server: Order by Parameters in In Statement
How to Get the Date and Time from Timestamp in Postgresql Select Query
SQL Server: Only Last Entry in Group By
What's the Most Efficient Way to Normalize Text from Column into a Table
How to Create a Calculated Column in a SQL Server 2008 Table
F# Type Provider for SQL in a Class