简体   繁体   English

无法在SQL Server Express 2008中使用SQL Server身份验证

[英]Unable to use SQL Server Authentication with SQL Server Express 2008

I have a simple question regarding SQL Server Authentication. 我有一个关于SQL Server身份验证的简单问题。

I am working with SQL Server 2008 Express which came along with VS2010. 我正在使用随VS2010一起提供的SQL Server 2008 Express。 As SQL Server Express was installed along with VS2010, there was no option to enter the password for SQL Server authentication (had I gone for SQL Server 2008 Standard, I get a screen where I can enter the password). 由于SQL Server Express是与VS2010一起安装的,因此无法输入用于SQL Server身份验证的密码(如果我没有使用SQL Server 2008 Standard,则会看到一个可以输入密码的屏幕)。

Now when I try to create a new database with SQL Server authentication, I tells me enter the username and password which I have never created. 现在,当我尝试使用SQL Server身份验证创建新数据库时,我告诉我输入从未创建过的用户名和密码。

在此处输入图片说明

Where should I go from here? 我应该从这里去哪里? Thanks in advance. 提前致谢。

No need to reinstall. 无需重新安装。

  1. Download and install SQL Server Managment Studio (SSMS). 下载并安装SQL Server Managment Studio(SSMS)。
  2. Use SSMS to connect to your server, use Windows Authentication 使用SSMS连接到服务器,使用Windows身份验证
  3. Right-click server - Properties - Security tab 右键单击服务器-属性-安全选项卡
  4. Select "SQL Server and Windows authentication mode" click OK button 选择“ SQL Server和Windows身份验证模式”,单击“确定”按钮
  5. Right-click server - Select Restart 右键单击服务器-选择重新启动
  6. Go to node Security-Logins 转到节点安全性登录
  7. Right-click on login "sa", select properties 右键单击登录“ sa”,选择属性
  8. Enter password (twice) on the general tab 在常规标签上输入密码(两次)
  9. Select Status tab 选择状态标签
  10. Select "Grant" under "Permission to connect to database engine" 在“连接到数据库引擎的权限”下选择“授予”
  11. Select "Enabled" under "Login" 在“登录”下选择“启用”
  12. Click OK 点击确定

I have SqlExpress installed along with Mgmt studio express. 我将SqlExpress和Mgmt Studio Express一起安装。 That allows me to change the SA password. 这使我可以更改SA密码。

There are 2 options when installing the SQL Server 2008 Express: mixed or windows authentication. 安装SQL Server 2008 Express时有两个选项:混合身份验证或Windows身份验证。 There are two textboxes below that to enter sa/password. 下面有两个文本框可输入sa / password。

Try using windows authentication. 尝试使用Windows身份验证。 But it would be probably best to reinstall the server in mixed mode with a password and username that you are going to remember. 但是最好以混合模式使用您要记住的密码和用户名重新安装服务器。

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

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