How to connect to LocalDb

后端 未结 10 1480
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 11:17

I installed LocalDb using the SqlLocalDb.msi package and I can connect to it using SSMS using the server name (LocalDb)\\v11.0. So far so good. The problem is t

相关标签:
10条回答
  • 2020-12-04 11:55

    Use (localdb)\MSSQLLocalDB. That is the LocalDB instance intended for applications, independent of Visual Studio version.


    Disregard my original answer: "With SQL Server 2014 Express LocalDB, use (localdb)\ProjectsV12. This works in both Visual Studio 2013 and SQL Server 2014 Management Studio." While ProjectsV12 will indeed give you a LocalDB instance, it's the wrong one, intended for use by SQL Server Data Tools.

    0 讨论(0)
  • 2020-12-04 11:57

    I was able to connect from SSMS using "(LocalDb)\Projects". That's the way it appears in VS2012 as well.

    0 讨论(0)
  • 2020-12-04 11:58

    Use (localdb)\MSSQLLocalDBwith Windows Auth

    0 讨论(0)
  • 2020-12-04 11:58
     <add name="Default" connectionString="Data Source=(LocalDb)\MSSqlLocalDB; Initial Catalog=CRM_Default_v1; Integrated Security=True"
          providerName="System.Data.SqlClient"/>
    

    your web.config files in visual studio under connectiionString or Go to View > SQL Server Object Viewer > Add Sql Server> add your server there

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