记:用户 nt authorityanonymous logon 登录失败 解决方案

最近在调试sqlserver连接,突然出现

用户 nt authorityanonymous logon 登录失败

错误,

数据库连接字符串为

Data Source=localhostxxx;Integrated Security=True;User ID=sa;Password=123456;database=xxxx;MultipleActiveResultSets=true

解决方案为:

Integrated Security=True项True修改为False,直接使用用户名登录。

记一次错误,共勉。

原文地址:https://www.cnblogs.com/FlyStupidBird/p/14228777.html