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

  • Home
  • SEARCH
  • 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 7587081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:35:06+00:00 2026-05-30T19:35:06+00:00

I am using SQL Server Compact Edition 3.5 on a mobile device. Synchronisation using

  • 0

I am using SQL Server Compact Edition 3.5 on a mobile device. Synchronisation using the sync framework works fine in the context of the user doing it via a button press and waiting for it to complete. There are no issues there.

I have recently attempted to do this in a background thread which runs every ‘n’ minutes or so. This also works fine, provided I am not using the database at the time. If I am using the database, the whole app locks up and I haven’t yet found the specific exception that must be happening. I will continue to do that, but that is not part of my question.

My question is does the SqlCeClientSyncProvider somehow throw an exclusive lock or otherwise physically lock the .SDF file during synchronisation? If so, are there any options to override this behaviour?

  • 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-30T19:35:08+00:00Added an answer on May 30, 2026 at 7:35 pm

    No, it doesn’t lock the .SDF file, after testing I see that at most it creates a transaction with a read committed isolation level. The issue I was having was a deadlocking issue in my own threading code — which I was able to resolve after some careful refactoring. I was raising an event ‘SyncBegun’ before the sync happened and raising a subsequent event ‘SyncEnded’ afterwards. These were using separate locks which were stepping on each other’s toes.

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

Sidebar

Related Questions

I am using the Entity Framework and SQL Server Compact Edition through the code
I am using LINQ to SQL with Sql Server Compact Edition 3.5 and VS2008.
I am using SQL Server CE 3.5 and C# with the .NET Compact Framework
I'm new to SQL Server Compact edition. I'm using Compact edition 3.5. I tried
I am using x64 machine so if I embed SQL Server Compact Edition 4.0
I am using MS SQL Server compact edition within a project. The client has
Hey, I am using iBATIS with SQL Server Compact Edition 3.5 and try to
I try to use SQL Server Compact Edition with Entity Framework in Visual Studio
I'm using Microsoft's SQL-Server Compact Edition 3.5 in my C# application. The SqlCeConnection will
I was using SQL Server Compact Edition (local-database) for my application. But while I

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.