Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 644587
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:24:34+00:00 2026-05-13T21:24:34+00:00

I have a problem with a deadline. And that deadline is tomorrow :S Luckily

  • 0

I have a problem with a deadline. And that deadline is tomorrow :S Luckily it doesn’t have to be the best solution; not even a good one. I only need one part working which I will describe shortly. What I want you to know is that I looking for the quickest and dirtiest solution right so my idea maybe sound really bad.

So, for the past couple of days I’ve been trying to synchronize a database located in a Windows Mobile device with a MySQL database located to a central linux server. Microsoft’s walkthrough contains a web service which I am not sure how to handle (I have very limited knowledge in this area). As far as I understand, there is a service which should be located in the server side, but this is not possible for various reasons (including the fact that it is a linux machine). Furthermore, I have yet to figure out how to make a mysql sync provider.

My solution, and this is an ugly one mind you, is to create a Java web service on the server that is responsible for tracking each Windows Mobiles’ sync requests and respond appropriately. Here is how I think it will go:

Each Windows Mobile device will contain a local database (SQL Compact). When there is an active internet connection, it will send a request to the web service to sync their database sending along their username and password. The web service will look for the last sync request from these credentials (which is a dump of the database at the time of the request) and compare it with the current database state. The service will only send the changes as a response. Once the response is sent, it will store the current database state as the user’s last sync request for the next one. All the Windows Mobile device has to do is follow the response (simple CRUD statements).

So, my question, finally, is: How can I store the database state in order to later compare it with a future state?

Of course, needless to say, if there is a better solution that can be done quickly, I can discard this whole idea.

For this case, here is what you need to know: the server is running linux. The database on it is MySQL and I cannot modify the schema. I can however install software on the server, like a webservice. Finally, the Windows Mobile devices are currently running SQL Compact. And of course, this should not cost anything since it will not be the final solution (which will use the Microsoft Sync Framework once I get to figure out some things).

Thank you very very much. I’d also like you to know that this is not a “give me code” question, I am mainly looking for any type of feedback (comments/ideas/suggestions/rants/etc).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:24:34+00:00Added an answer on May 13, 2026 at 9:24 pm

    Here is a random (and possibly stupid and unworkable) way to address it. If I understand correctly, you are synchronizing in only one direction (from the MySQL database to the mobile device). If it is two-way sync, then this will not work at all.

    Set up replication on the database to replicate to a slave copy of the data. In that slave database, put triggers on the tables involved and for each modification (delete, update, insert), write the necessary information to generate your CRUD statements to some file/table. Then during the sync, just replay those statements to the device and then delete/clear the file. The next sync would then replay the next set of statements that were accumulated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have put together the following code, the problem is that each while loop
I have problem with consuming DbContext class in EF 4.3 CodeFirst approach. As for
I have problem with building in Qt4 creator. I have some created projects and
i have problem to pass data from view to controller , i have view
I have problem with empty item(s) in accordion UI. I have 3 sections. +
I have problem with List<Image> List<Image> _Images = new List<Image>(); int currIndex = 0;
I have problem like this https://dev.twitter.com/discussions/4563 if (webResponse.Headers[Content-Encoding] == gzip) { byte[] bytes =
I have problem with getting value of parameter when I have variable with some
I have problem with Visual Studio Designer. When I display design of a form,
I have problem with css styles in aspx.cs file HttpContext.Current.Response.Write(<table class=\'bordered\' cellpadding=\'5\' color: \'red\'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.