User Instance of SqlLocalDb

后端 未结 2 1812
挽巷
挽巷 2020-12-30 23:09

I am getting this Exception When I am trying to access database from C#.

My Connection String is

Data Source=(localdb)\\v11.0;integrated security=tr         


        
2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 23:34

    LocalDB instances are all "User Instances", and there's no need to specify User Instance=true in your connection string, in fact it is not even supported (as you can see). Just remove this part and it's going to work fine.

提交回复
热议问题