在非域环境下安装SQL SERVER ,默认管理员为"机器名\administrator",在升级为域控制器之后由于WINDOWS的用户“机器名\administrator”已自动变更为“ 域名\administrator”,所以sql server 也需跟随变更,否则部分业务无法处理。
解决方案: 用 alter login 更改登录名:
ALTER LOGIN [机器名\Administrator] WITH NAME=[域名\Administrator]