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 3665598
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T01:46:49+00:00 2026-05-19T01:46:49+00:00

Currently my app pulls data from an Microsoft SQL 2005 database via ASP.NET XML

  • 0

Currently my app pulls data from an Microsoft SQL 2005 database via ASP.NET XML web services using SOAP whenever it needs data.

I would like to change my app so that it has a local database, and this database would check to see if the data has changed and synch itself to any new data.

How do i tell if there is any new data?

Do i just count the number of rows in the SQL table and if it less than the number of rows in the CoreData database then re-write the CoreData database?

Is there a way to tell only sync the records that have changed or been added/deleted?

Should i be synching all data when the app starts or synching only the table that corresponds to the loading view?

Any help is greatly appreciated!

Thanks,
-Mike

  • 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-19T01:46:50+00:00Added an answer on May 19, 2026 at 1:46 am

    If you are clever with your schema design than you can. The best option is probably to add ‘created_at’ and ‘updated_at’ date fields to your database tables (and set them whenever you modify or create records). Then in your sync request query, select all records that have a date greater than the highest date in your local database. This will work for a ONE way synchronization. TWO way synchronization is much more difficult and requires thought on contact resolution.

    As for syncing, I’d recommend doing it in the background whenever possible. You should be able to use the NSFetchedResultsController to handle updating your views when new records are fetched. This way the user won’t experience any annoying loading screens.

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

Sidebar

Related Questions

No related questions found

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.