Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”

前端 未结 19 2800
闹比i
闹比i 2020-12-05 12:38

I am trying to host a SQL server database, but whenever I try to connect to it I get this error:

The login is from an untrusted domain and cannot be u

19条回答
  •  不知归路
    2020-12-05 13:20

    In .net Core also you may get this error if Trusted_Connection=True; Is set. Sample setting in appsettings.jason

    ConnectionStrings": {
    "DefaultConnection": "Server=serverName; Database=DbName; uid=userId; pwd=password; MultipleActiveResultSets=true"
    

    },

提交回复
热议问题