How to install LocalDB 2016 along with Visual Studio 2017?

后端 未结 9 1689
甜味超标
甜味超标 2020-12-15 19:49

After installing Visual Studio 2017 with the SQL Server Data tools feature checked, I noticed LocalDB was not installed. How can I add SQL Server LocalDB 2016 to my Visual S

相关标签:
9条回答
  • 2020-12-15 20:25

    I have the same issue here, I followed the accepted answer but I think nothing has been installed. I followed the installer, and everything was checked ever since I installed my Visual Studio 2017 Professional Edition:

    After all successful installation, and tried to modify it again using the installer, it will show the that I need to download the same tools which I installed multiple times. In other words, I have the same window as my image I showed above even though I already installed and modified it several times. And LocalDb still is not yet installed.

    So I directly downloaded it here, you can even choose your own version: SQL Server Express LocalDB

    Then upon successful installation using the link above, I was now able to confirm that LocalDb has finally installed on my machine.

    To query, run command prompt and input:

    0 讨论(0)
  • 2020-12-15 20:37

    As others have pointed out, LocalDB is automatically included if you select certain workloads, such as Desktop or ASP.Net.

    However, you may not want one of those workloads. You may just want to add LocalDB.

    In the Visual Studio Installer, navigate away from the Workloads tab to the second tab (Individual components). Here, the individual items are listed alphabetically, and can be selected or deselected for installation:

    0 讨论(0)
  • 2020-12-15 20:37

    I know this is a little different that what is asked, but the symptom is similar so I'm posting this. I figured out what I was missing. I was following a tutorial on Pluralsight, Bethany's Pie Shop, "Building Your First ASP.NET Core 2.0 MVC Application VS 2017", and tried running the solution downloaded. I had a failed login message... I re-watched a couple of the videos. This is what I was missing. I needed (in VS) to go to View->other windows->PkgMgrConsole - Make sure you've built the application (build solution at top of VS) - in console at bottom.... add-migration InitialMigration - in console.... update-database - run program

    The person asking this didn't say how he got to the point that he thought he didn't have localDb installed. I checked, and I had it installed, but it was giving me a failed login message when I tried running the program without these steps.

    0 讨论(0)
提交回复
热议问题