I have a simple question regarding SQL Server Authentication.
I am working with SQL Server 2008 Express which came along with VS2010. 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).
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.
Where should I go from here? Thanks in advance.
No need to reinstall.
- Download and install SQL Server Managment Studio (SSMS).
- Use SSMS to connect to your server, use Windows Authentication
- Right-click server - Properties - Security tab
- Select "SQL Server and Windows authentication mode" click OK button
- Right-click server - Select Restart
- Go to node Security-Logins
- Right-click on login "sa", select properties
- Enter password (twice) on the general tab
- Select Status tab
- Select "Grant" under "Permission to connect to database engine"
- Select "Enabled" under "Login"
- Click OK
I have SqlExpress installed along with Mgmt studio express. That allows me to change the SA password.
There are 2 options when installing the SQL Server 2008 Express: mixed or windows authentication. There are two textboxes below that to enter sa/password.
Try using windows authentication. But it would be probably best to reinstall the server in mixed mode with a password and username that you are going to remember.
精彩评论