更改PC密码后,无法通过Windows身份验证连接到SQL Server中的localhost

时间:2016-08-30 02:24:06

标签: sql-server localhost windows-authentication

最初,我可以通过Windows身份验证连接到SQL Server中的localhost。但在我更改了PC的登录密码后,我不能。你能帮我解决一下原因吗?

2 个答案:

答案 0 :(得分:0)

  • Open CMD (Ctrl+r) input "services.msc"
  • Right Click SQL Server (Your Instance) - Properties

services

  • Click Tab Log On

Click Tab Log On

  • Fill this account : your user login
  • Fill password : your user password, then confirm password then Ok.
  • Back to services Right click your SQL Server [Instance Name] - Start (picture 1)
  • Try re-login using windows account at SSMS

答案 1 :(得分:-1)

没有提供太多信息......但这对许多用户来说都是常见问题。

检查SQL Server配置管理器中的服务器帐户名称。如果您在帐户下运行它,则必须更改该服务的密码并重新启动它,或将其更改为使用LocalSystem帐户。

相关问题