c# - Best way to sync remote SQL Server database with local SQL Server Compact database? -


i realise discussed topic suggestions see seem involve direct access sql server in our instance not ideal.

our scenario remote sql server database (say) 100 tables. developing lightweight desktop application use sql server compact database , sync subset of (say) 20 tables remote server periodically.

i have control on how replication occurs because speed major issue since remote server 1000's of miles away.

also don't need sync records in each table - relevant each user.

i quite sql merge facility requires client connected remote sql server. not possible , thinking of interfacing remote server through web service accessed through our application or other method.

any suggestions welcome.

update

just clarify, internet connection intermittent, that's main reason why need sync 2 databases.

the fact using compact db client puts pretty heavy limitations on available options in scenario.

given limitations , performance requirements desire, consider implementing service-based http endpoint keep desired tables in sync. if architecture allows it, doing asynchronously boost performance again, may not viable depending on architecture.

something else consider using web sockets rather standard http connections web service mentioned above. way keep clients synced real-time, since web sockets true duplex real-time connections. major catch either have ensure clients web-socket compliant or provide fall-back emulate websocket connection emulation framework clients aren't par.

not sure if helps any.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -