简体   繁体   English

SQL Server 2008不允许我启用“ sa”用户

[英]SQL Server 2008 won't let me enable the 'sa' user

I normally use the sa user for development, but SQL Server isn't letting me enable the account. 我通常使用sa用户进行开发,但是SQL Server不允许我启用该帐户。 It says: 它说:

Cannot set a credential for principal user 'sa' 无法为主要用户“ sa”设置凭据

When installing it I set it up with mixed mode. 安装时,我将其设置为混合模式。

This may be of help. 可能会有帮助。 But I agree with Coehoorn's statement - DON'T USE SA. 但是我同意Coehoorn的说法-请勿使用SA。

Don't use the sa account ever, even for development work. 永远不要使用sa帐户,即使是用于开发工作。 Not only is it dangerous from a security standpoint, it can also lead to bugs popping up at deployment when you suddenly don't have permissions for something. 从安全角度来看,这不仅很危险,而且还可能导致突然没有权限的部署时弹出错误。

Instead of SA, grant your own windows account the appropriate perms in SQL Server. 代替SA,在SQL Server中为您自己的Windows帐户授予适当的权限。 Leave mixed mode off if possible, or if you must have mixed mode, disable the SA account itself. 尽可能关闭混合模式,或者如果必须使用混合模式,请禁用SA帐户本身。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM