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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:11:02+00:00 2026-05-10T15:11:02+00:00

Intermittently in our app, we encounter LockTimeoutExceptions being throw from SQL CE. We’ve recently

  • 0

Intermittently in our app, we encounter LockTimeoutExceptions being throw from SQL CE. We’ve recently upgraded to 3.5 SP 1, and a number of them seem to have gone away, but we still do see them occasionally. I’m certain it’s a bug in our code (which is multi-threaded) but I haven’t been able to pin it down precisely. Does anyone have any good techniques for debugging this problem? The exceptions log like this (there’s never a stack trace for these exceptions):

SQL Server Compact timed out waiting for a lock. The default lock time is 2000ms for devices and 5000ms for desktops. The default lock timeout can be increased in the connection string using the ssce: default lock timeout property. [ Session id = 6,Thread id = 7856,Process id = 10116,Table name = Product,Conflict type = s lock (x blocks),Resource = DDL ]

Our database is read-heavy, but does seldom writes, and I think I’ve got everything protected where it needs to be.

EDIT: SQL CE already automatically uses NOLOCK http://msdn.microsoft.com/en-us/library/ms172398(sql.90).aspx

  • 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. 2026-05-10T15:11:02+00:00Added an answer on May 10, 2026 at 3:11 pm

    I just realized that 3.5 SP1 includes new information in the exception that let me pin in down.

    SQL Server Compact timed out waiting for a lock. The default lock time is 2000ms for devices and 5000ms for desktops. The default lock timeout can be increased in the connection string using the ssce: default lock timeout property. [ Session id = 6,Thread id = 7856,Process id = 10116,Table name = Product,Conflict type = s lock (x blocks),Resource = DDL ]

    I was able to identify that it was occuring when were trying to drop an existing table that must have open connections to it.

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

Sidebar

Related Questions

I've been getting these errors intermittently from sending email from my django app. I
I seem to be intermittently receiving the following error: BigQuery error in query operation:
I have a .NET client app that intermittently loses connection to a UNC share
We've been having some issues with our MySQL server intermittently. It keeps throwing out
Our live servers (ASP.NET) intermittently run into a mysterious error, but i cannot access
I'm debugging a codeigniter app that intermittently crashes (500 error) when showing a list
I have a winforms app with multiple GUI threads. I want them to be
We have a weird intermittent problem with saving from Word 2007 to our SharePoint
One of our CruiseControl.NET projects keeps intermittently failing because a msbuild task fails with
We've created a windows authenticated sub directory on our web server, however, intermittently when

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.