登錄失敗。該登錄名來自不受信任的域,不能與 Windows 身份驗證一起使用
使用sever sql 遠程連接數據庫的時候遇到了這個問題,我用的是ADO.NET 實體數據模型,有web.config 解決了好久,因開始以為是權限問題。后來解決了只需要在web.config中
<connectionStrings>
<add name="ConnectionString" connectionString="Data Source=192.168.100.30;Initial Catalog=RsxCompany;Integrated Security=false;User ID=sa;Password=etm0802;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
將紅色字體設為false