且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

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

更新时间:2021-09-03 08:57:52

错误非常简单:您不能对该连接使用 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