in fact, this is not possible - SQL CE does not support network operations: everything related to the sdf file (temporary data) is written to the local computer, and not to the network source, so the server cannot process requests correctly.
You can use SQL Express Server, which acts as a data warehouse, for the local client the only thing you need is the Microsoft Synchronization 2.1 library (it also works with SQL CE 4.0 SP1)
To summarize, create a SQL CE database, fill it with tables, index them, then move it to SQL Server express, add a synchronization module to your application (in a separate ofc stream) and it.
Another solution is to use MS Access DB, which allows such a mess, but incredibly slowly, not to mention not allowing simultaneous writing to db.
source share