Technical 1 Solved: A network-related or instance-specific error occurred while establishing a connection to SQL Server
Run the following code in your command prompt:
1) Find the Local DB exists or not: (NOTE: Please copy your LocalDb version)
sqllocaldb
2) Try to Start SQL Local DB
sqllocaldb s
Note: If you get error to start (already running), try to stop it (using 3rd step)
3) Stops My Sql Local Db Instance
sqllocaldb p
4) Now try to delete the instance (please mention your version below)
Sqllocaldb delete (version_of_instance)
E.g. sqllocaldb delete 15.0.4153.1
5) Now stop the instance using command (If error continue for next step)
sqllocaldb p
6) Finally Delete localdb using
Sqllocaldb delete
7) Create it again using
Sqllocaldb create
8) Start the service again and it works
sqllocaldb s
I hope after running following steps, you will be able to connect visual studio projects with your local db.
Again this is not guaranteed but it has helped many of my friends' and wish the same for you.
Blog by: Aadi
Comments
Post a Comment