Why can't I see a localdb database created by a UWP (Desktop Bridge App) in the SQL Server Object Explorer?

前端 未结 2 342
终归单人心
终归单人心 2021-01-19 01:36

Does UWP support LocalDB?
My investigations indicate there are some issues using localdb that I don\'t experience with SQL Server 2017 Development edition.

I man

相关标签:
2条回答
  • 2021-01-19 01:56

    There is a method to connect UWP to a localdb, you have to use the winforms sql data factory method the issues is although you have access to System.Data.SQLClient, you do not have SqlDataAdapter so you cannot create a user login system. However you can read data from the database and create ObservableCollections. To save you time Adapter Client doesn't work either. I think we have to wait for another update where the all the SQL libraries have been added.

    0 讨论(0)
  • 2021-01-19 02:00

    I have come to the conclusion that localdb is not a supported version of SQL Server for production.

    As explained here

    LocalDB is a special, low impact version of the SQL Server engine, that is not installed as a Windows Service, but launched (made to run) on demand by the ADO.NET client opening a connection to it. It is intended for single user scenarios, and not for any prodcution use - for production you should use SQL Server Express (or higher)

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