Question

I have created a C# Windows application that connects to a local SQL Server CE database file. This is working fine, however I would like to expand the application and allow it to run for multiple users.

My idea is to place the SQL Server CE database online in some private hosting and connect to it from the local application. I have been looking at this for some time know and have not yet been able to find a solution on the net.

Is this possible? And if not what would you suggest is the simplest solution to achieve the same result?

Was it helpful?

Solution

Sql Server CE is not designed to do this. You cannot connect to a Sql Server CE database over a network connection.

If you a truly want to use SQL CE, then instead of having your application directly connect to it, write a Web API / Web Services that provides the Data Layer and each application can use those to do DB Calls.

Really this should just be replaced by Sql Server Express (or higher), then use the same idea above.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top