I have just restored a database backup to my local SQL Server express instance.
- In management studio under the server instance node I went to: Security -> Logins -> New login...
- Then I filled in a login name, password and chose SQL Server authentication. And at the bottom I selected the newly restored database to be the Default database.
- At the User Mapping 'tab' at the left, I mapped the user to the newly restored database and gave it "db_owner" role.
When I try to login the following error is given in the log:
Login failed for user 'username'. Reason: Could not find a login matching the name provided. [CLIENT: ]
How can I make SQL Server find the login matching the name I provided?
Other info:
- Named pipes are enabled
- TCP/IP is enabled
- Remote connections are allowed