App Config-登录来自不受信任的域 [英] App Config - The Login is from an untrusted domain
本文介绍了App Config-登录来自不受信任的域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
首先,我尝试使用Windows身份验证通过ssms连接到其他计算机(PC1-PC\Instance1)的sql服务器,但出现此错误
First, I try to connect to sql server of other computer(PC1-PC\Instance1) through ssms with Windows Authentication but got this error
登录失败。登录名来自不受信任的域,不能与Windows身份验证一起使用。
将sa的密码编辑为< PC1-PC\Instance1中的code> 1234 。然后使用SQL Server身份验证连接ssms。并成功连接。
I resolve the error when I edit the password of sa to 1234
in PC1-PC\Instance1. Then connect in the ssms with SQL Server Authentication. And successfully connected.
问题出在我的Winforms应用程序配置中,我将连接设置为此:
The problem is in my Winforms app config, I set the connection to this:
<connectionStrings>
<add name="LibrarySystem.Properties.Settings.LibraryConnectionString" connectionString="Data Source=PC1-PC\Instance1;
Initial Catalog=System1;Integrated Security=True;MultipleActiveResultSets=True;User id = sa;Password = 1234" providerName="System.Data.SqlClient"/>
但是我收到此错误登录失败。登录名来自不受信任的域,不能与Windows身份验证一起使用。
推荐答案
<connectionStrings><add name="LibrarySystem.Properties.Settings.LibraryConnectionString" connectionString="Data Source=PC1-PC\Instance1;
Initial Catalog=System1;MultipleActiveResultSets=True;User id = sa;Password = 1234" providerName="System.Data.SqlClient"/>
这篇关于App Config-登录来自不受信任的域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文