You are currently offline, waiting for your internet to reconnect

FIX: A Deadlock occurs when two transactions try to perform a DML operation on a table that contains a TABLOCK locking hint or an XLOCK locking hint

Extended support for SQL Server 2005 ends on April 12, 2016

If you are still running SQL Server 2005 after April 12, 2016, you will no longer receive security updates and technical support. We recommend upgrading to SQL Server 2014 and Azure SQL Database to achieve breakthrough performance, maintain security and compliance, and optimize your data platform infrastructure. Learn more about the options for upgrading from SQL Server 2005 to a supported version here.

SYMPTOMS
Consider the following scenario in Microsoft SQL Server Compact 3.5:
  • You have two transactions of serializable isolation.
  • Both transactions try to perform a DML operation (query/DML) on the same table that contains a TABLOCK locking hint or an XLOCK locking hint.
In this scenario, you encounter a deadlock.
CAUSE
This issue occurs because both transactions wait for one another for XLOCK. When the query gets compiled, both transactions obtain the shared lock on the table and then holds the lock for serializable isolation. When both transactions try to perform an execute, the query on the same table that contains an XLOCK locking hint, then both transactions wait for one another for XLOCK. Therefore, a deadlock occurs.

Note This issue also occurs when both transactions perform a DML operation on the same table that contains a TABLOCK locking hint.
RESOLUTION

SQL Server Compact 3.5 Service Pack 2

The fix for this issue was first released in Cumulative Update 2. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:
2289547 Cumulative Update 2 for SQL Server Compact 3.5 Service Pack 2
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
MORE INFORMATION
For more information about Deadlock, visit the following Microsoft Developer Network (MSDN) website: For more information about DML, visit the following MSDN website:For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates
Properties

Article ID: 983516 - Last Review: 08/25/2010 16:06:00 - Revision: 2.0

Microsoft SQL Server Compact 3.5

  • kbqfe kbhotfixserver kbexpertiseadvanced kbsurveynew kbautohotfix KB983516
Feedback