문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top