0

I have installed local DB and SSMS for my project. When I tried to create database in App_data [for an ASP.NET MVC application], I get an error

Error 50: local DB run time error occurred.

When I checked the services, it's showing only "SQL Server vss writer".

I think I'm missing other services that are required to connect to a database from an ASP.NET MVC application.

Could any one please suggest me from which link, I need to install these? I basically wanted to create a database for ASP.NET MVC 1st approach.. Any other way to resolve this local DB run time error? I need something free for my POC. Please help.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
AskMe
  • 2,495
  • 8
  • 49
  • 102

1 Answers1

0

I answered a similar question here, you need to stat the other open Run type-> services.msc - under services -> sort by stopped you will see a bunch of stopped SQL services Right click and start

To begin - there are 4 issues that could be causing the common LocalDb SqlExpress Sql Server connectivity errors SQL Network Interfaces, error: 50 - Local Database Runtime error occurred, before you begin you need to rename the v11 or v12 to (localdb)\mssqllocaldb

I found that the simplest is to do the below - I have attached the pics and steps for help.

First verify which instance you have installed, you can do this by checking the registry and by running cmd

  1. cmd> Sqllocaldb.exe i
  2. cmd> Sqllocaldb.exe s "whicheverVersionYouWantFromListBefore" if this step fails, you can delete with option d cmd> Sqllocaldb.exe d "someDb"
  3. cmd> Sqllocaldb.exe c "createSomeNewDbIfyouWantDb"
  4. cmd> Sqllocaldb.exe start "createSomeNewDbIfyouWantDb"

SqlLOCALDb_edited.png

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Transformer
  • 6,963
  • 2
  • 26
  • 52