Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 Update 3: "This project uses SQL Server Express LocalDB. Microsoft recommends that you use SQL Server Express with IIS"

Using Visual Studio 2015 Update 2 and Update 3

I am getting the following irrelevant error when I open my project:

This project uses SQL Server Express LocalDB. Microsoft recommends that you use SQL Server Express with IIS"

enter image description here

Before I click on "Don't ask again" I like to know what is the root of the irrelevant warning and how to address it properly?

like image 869
Allan Xu Avatar asked Jul 27 '16 14:07

Allan Xu


People also ask

Does Visual Studio install LocalDB?

Alternatively, you can install LocalDB through the Visual Studio Installer, as part of the Data Storage and Processing workload, the ASP.NET and web development workload, or as an individual component.

What is the difference between LocalDB and SQL Express?

LocalDB is a lightweight version of the SQL Server Express Database Engine that is targeted for program development. LocalDB starts on demand and runs in user mode, so there is no complex configuration. SQL Server is the Microsoft-driven relational database management system.


1 Answers

"SQL Server Express" and "SQL Server Express LocalDB" are very different. The second one is a file-based database, so you need to configure the connection string specifying the path where the file .mdf is located. The first is a real database server, so the connection string must include the server name (or the public ip), the username and the password. The dialog simply suggest you to download and install SQL Server Express, that it's the best method to develop an application with database.

https://msdn.microsoft.com/en-us/library/hh510202.aspx

like image 50
Igor Damiani Avatar answered Nov 09 '22 05:11

Igor Damiani