登录失败。登录来自不受信任的域,不能与Windows身份验证一起使用。 - 错误 [英] Login failed. the login is from an untrusted domain and cannot be used with windows authentication. - error

查看:132
本文介绍了登录失败。登录来自不受信任的域,不能与Windows身份验证一起使用。 - 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个与Sql Server数据库连接的项目,它在我的电脑上完美运行但是当我想在另一台PC上运行时出现错误:



>登录失败。登录来自不受信任的域,不能与Windows身份验证一起使用。



能帮帮我吗?



我尝试过的事情:



到目前为止,我已经在谷歌上阅读了一些解决方案,但我认为它们都不适合我的问题。

I have a project connected with Sql Server database that is working perfectly on my PC but when I want to run it on another PC the error comes up :

>Login failed. The login is from an untrusted domain and cannot be used with windows authentication.

Can you please help me?

What I have tried:

So far I have read some solutions on google but I think that none of them fits to my problem.

推荐答案

错误非常简单:您不能对该连接使用 Integrated Security = True ,您必须使用对特定数据库具有适当权限的有效SQL数据库用户名和密码组合你试图访问。

所以而不是

The error is pretty self explanatory: you cannot use "Integrated Security=True" with that connection, you must use a valid SQL database username and password combination that has appropriate permissions for the specific database you are trying to access.
So instead of
Data Source=localhost;Initial Catalog=MyDb;Integrated Security=True



你需要这样的东西:


You need something like:

Data Source=palm.MyHostingService.com;Initial Catalog=MyDb;Persist Security Info=True;User ID=MyUserName;Password=MyUserPassword


这篇关于登录失败。登录来自不受信任的域,不能与Windows身份验证一起使用。 - 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆