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

冷暖自知 提交于 2019-12-02 15:52:39

The following command through sqllocaldb utility works for me.

sqllocaldb stop mssqllocaldb
sqllocaldb delete mssqllocaldb
sqllocaldb start "MSSQLLocalDB"

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

Right click your server and go to Properties, the select the Security Under Server Authetication section, You will find that “Windows Authetication Mode” radio button selected. So, your work is to select “Sql Server and Windows Authetication Mode” radio button. Right click your server again and select restart. Then follow below steps. Try follwing steps:

(a)Expand the SQL Server

(c) Expand Security node

(d) Select the Particular Login (User)

(e) Press right button and select properties of the login

(f) Go to Status table Enble the User

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!