I had this problem, and I just got it working (I’m doing the MVC-Movie MVC6 tutorial - I’m just in the "Adding a Model" section, where you create a connection to the local database: here ).
Visual Studio 2015 / SQL Server 2014 uses a path other than 2012/2013. Earlier, I had VS2012 and VS2013 installed, and I created local databases in each. VS2012 created the connection as: (localdb) \ v11.0 and the SQL Server Data Tools (SSDT) as (localdb) \ ProjectsV12.
To make (LocalDB) \ MSSQLLocalDB work for you:
- Open CMD Prompt and enter
SQLLocalDB.exe info show all current database servers in your local connection - You should see an option here for MSSQLLocalDB. type
SQLLocalDB.exe start MSSQLLocalDB It will tell you that it has now started. - Go to Visual Studio and click View → SQL Server Object Browser. Here you will need to add SQL Server (right-click on SQL Server and select "Add SQL Server").
- In the Server name: field, enter '(LocalDB) \ MSSQLLocalDB' - Username / Server type / Authentication should be left by default. After clicking the "Connect" button, a new database will appear along with your new database.
Databases are now stored in the c: \ users \ [DATABASE-NAME] directory, where, as before, they are stored in your C: \ Users \\ AppData \ Local \ Microsoft \ VisualStudio \ SSDT.
Hope this solves your problem with finding SQLServer, Cheers
source share