LocalDB not recognized in Visual Studio 2015

jmk22

I'm trying to create a database-first ASP.NET MVC app with Entity Framework in Visual Studio.

Starting with a blank project template, I open up the Server Explorer and try to add a data connection. I use Microsoft SQL Server as the Data Source, and "(localdb)\v11.0" as the Server Name. This gives me the error:

"The Data Source value in the connection string specifies an instance of SQL server that is not installed. To resolve the issue, either choose to install the matching instance of SQL Server or modify the Data Source value in the connection string."

The tutorial I'm following (and a few other places I've googled) mentions that localdb is installed with Visual Studio. Either way, I have also installed LocalDB found here but it's not showing up.

I've tried following the directions in this post, but get the error "Cannot create an automatic instance."

How do I get Visual Studio to connect to LocalDB?

Saravana

The default instance name is changed to (localdb)\MSSQLLocalDB independent of version numbers for VS 2015.

More info here: http://thebillwagner.com/Blog/Item/2015-02-05-VersionindependentlocalDBinVisualStudio2015

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to add LocalDB to Visual Studio 2015 Community's SQL Server Object Explorer?

分類Dev

Visual Studio + Windows10のlocaldb

分類Dev

Visual Studio 2015

分類Dev

Visual Studio 2015 not finding Visual studio 2010

分類Dev

Cursor disappears in Visual Studio 2015

分類Dev

Visual Studio 2015 Installation Problems

分類Dev

Visual Studio Community 2015、BSoD

分類Dev

Breakpoint Failed to Bind - Visual Studio 2015

分類Dev

Visual Studio 2013/2015 Idle CPU Usage

分類Dev

ReSharper big font in Visual Studio 2015

分類Dev

Visual Studio 2015 RC SP324099

分類Dev

Grunt watch task binding in Visual Studio 2015

分類Dev

Visual Studio 2015 + TypeScript 1.6.3 + JQuery

分類Dev

Visual Studio 2015 CSS Intellisense Broken

分類Dev

MATLAB File Association in Visual Studio 2015 / TFS

分類Dev

Visual Studio 2015/2017のTSLint?

分類Dev

Visual studio 2015 - How to change default currency?

分類Dev

Incorrect value while debugging in Visual Studio 2015

分類Dev

How to install .Net Core on Visual Studio 2015?

分類Dev

Disable automatic parenthesis insertion in Visual Studio 2015

分類Dev

Stop debugging in Progress in visual studio 2015

分類Dev

Install CRM 2015 SDK on Visual Studio 2013

分類Dev

getting typescript to work with visual studio 2015 rc?

分類Dev

PRE Visual Studio2015とは

分類Dev

PRE Visual Studio2015とは

分類Dev

Visual Studio 2015 RC + RequireJS + jQuery

分類Dev

Visual Studio2015のIostream

分類Dev

Apache Cordova Visual Studio 2015 iframe

分類Dev

Switch DNX Version in Visual Studio 2015?