Compact is not fully compatible with "real" SQL Server. Check the LocalDB instead: supports everything that express edition does, but simplified setup and doesn't run as a windows service.
SDF and MDF, two database in one application
-
28-06-2023 - |
Pergunta
Is it possible to use two databases in one application, i.e. SQL Server database and Local Database (.sdf
= SQL Server Compact Edition)?
So some user can use it on network, but for another users is that not important.
Can I create two project, one for SQL Server for example (I have already LINQ to SQL). And another for Local Database where .sdf
file is added with DataSet and so on. And than I planned to compile my solution including one of this two project, depends on my customer's needs (SQL Server or Local Database). I have also Business Layer and GUI which stay the same. Can this be done or there is some other way how to do this?
I am using Visual Studio 2012
Thanks for any tips.
Solução
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow