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.

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top