.net sqlexpress 本地数据库管理员密码
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10815975/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
sqlexpress local database administrator password
提问by Dani?l Tulp
I'm trying to install some .Net eCommerce projects on my local machine (windows Vista) with Webmatrix. Some of them ask for a Database administrator username and password, but I have no idea what those are.
我正在尝试使用 Webmatrix 在我的本地机器(Windows Vista)上安装一些 .Net 电子商务项目。其中一些要求提供数据库管理员用户名和密码,但我不知道这些是什么。
Can anybody help me on this. See image which is a screenshot of the installation process.
任何人都可以帮助我。请参阅图像,这是安装过程的屏幕截图。


回答by Luuk Krijnen
By Default the SQLEXPRESS installation uses Windows Authentication. in the management studio on the security-tab of the server properties you can select "SQL Server and Windows Authentication" ONLY THEN The 'sa' account is accepted. You probably have to set/reset the password for this account if you can't remember you entered it.
默认情况下,SQLEXPRESS 安装使用 Windows 身份验证。在服务器属性的安全选项卡上的管理工作室中,您只能选择“SQL Server 和 Windows 身份验证”,然后才接受“sa”帐户。如果您不记得自己输入了密码,您可能需要设置/重置此帐户的密码。
回答by Ravi Reddy
I had the same problem and i performed the below steps to resolve the issue:
我遇到了同样的问题,我执行了以下步骤来解决问题:
Open Sql Server Management Studio as Administartor
Login to .\SQLEXPRESS using Windows Authentication
Go to Security Tab -- > Logins --> Change the "sa" password and Press Ok
Use the newly created Password in WebMatrix and you should be all Set.
以管理员身份打开 Sql Server Management Studio
使用 Windows 身份验证登录到 .\SQLEXPRESS
转到安全选项卡 --> 登录 --> 更改“sa”密码并按确定
在 WebMatrix 中使用新创建的密码,您应该全部设置。
回答by rogeriopradoj
In your client (SQL Server Management Studio) you have to:
在您的客户端(SQL Server Management Studio)中,您必须:
- change password for login user "sa"
- enable login for user "sa"
- ensure SQL Server authentication is enabled
- 更改登录用户“sa”的密码
- 为用户“sa”启用登录
- 确保启用 SQL Server 身份验证
1. change password for login user "sa"
1.修改登录用户“sa”的密码
Security > Logins > sa (right-click) > Properties > General > Password and Confirm password
安全 > 登录 > sa(右键单击)> 属性 > 常规 > 密码和确认密码
2. enable login for user "sa"
2. 为用户“sa”启用登录
Security > Logins > sa (right-click) > Properties > Status > Login, click in Enabled
安全 > 登录 > sa(右键单击)> 属性 > 状态 > 登录,单击已启用
3. ensure SQL Server authentication is enabled
3. 确保启用 SQL Server 身份验证
Right click on server > Properties > Security > Server authentication, click in SQL Server and Windows Authentication mode
右键单击服务器 > 属性 > 安全 > 服务器身份验证,在 SQL Server 和 Windows 身份验证模式下单击
回答by YvesR
Since SQL 2005 the Express edition is installed with windows authentication. In the configuration (management studio, connect to the server and choose database properties) you can activate sql internal authentification then (default deactivated, user sa without password).
自 SQL 2005 以来,Express 版安装了 Windows 身份验证。在配置(管理工作室,连接到服务器并选择数据库属性)中,您可以激活 sql 内部身份验证然后(默认停用,用户 sa 没有密码)。
So if you can't connect it you might have to activate it and set a password for the user sa then.
因此,如果您无法连接它,则可能必须激活它并为用户 sa 设置密码。

