Cannot connect to (LocalDB)\MSSQLLocalDB -> Login failed for user 'User-PC\User'

Musakkhir Sayyed picture Musakkhir Sayyed · Apr 30, 2016 · Viewed 41.3k times · Source

I am getting an error, While I am trying to connect (LocalDB)\MSSQLLocalDB through SQL Server management studio. I also tried to login with default database as master the error is same.

enter image description here Here is the Server details. enter image description here

Answer

Musakkhir Sayyed picture Musakkhir Sayyed · Apr 30, 2016

The following command through sqllocaldb utility works for me.

sqllocaldb stop mssqllocaldb
sqllocaldb delete mssqllocaldb
sqllocaldb start "MSSQLLocalDB"

enter image description here

After that I restarted the sql server management studio, and it is successfully established connection through (LocalDB)\MSSQLLocalDB