Possible Duplicate:
Cannot connect to UserPC\SQLExpress
I have been struggling to find a solution for this from long but in vain. I recently installed SQL Server Management Studio Express and tried to login with SQL authentication with ‘sa’ username. It was giving me error 233, so I enabled NamedPipes, Shared Memory and TCP IP from Configuration Manager.
Now, I when I try to login, it shows an Error:
Login failed for the user ”. Erorr: 18456
Screenshot:

I checked the server error logs and they were showing me
2011-01-07 01:35:12.47 spid17s Error: 17054, Severity: 16, State: 1.
Try logging in with “Windows Authentication” first and create a new user with a password. You can use this new username/password to login and find out if you are using the right user/pwd combination.
Hope this helps