ID do artigo: 983516 - Última revisão: quarta-feira, 25 de agosto de 2010 - Revisão: 1.0

FIX: um deadlock ocorre quando duas transações tentam realizar uma operação DML em uma tabela que contém uma dica de bloqueio de TABLOCK ou uma dica de bloqueio XLOCK

Download do hotfix está disponívelDownload do Hotfix Disponível
Visualizar e solicitar downloads de hotfix
Dica do SistemaEste artigo aplica-se a um sistema operativo diferente do que está a utilizar. Foi desactivado o conteúdo do artigo, que pode não ser relevante para si.

Nesta página

Expandir tudo | Recolher tudo

Sintomas

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.

Causa

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.

Resolução

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  (http://support.microsoft.com/kb/2289547/ ) Cumulative Update 2 for SQL Server Compact 3.5 Service Pack 2

Situação

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

Mais Informações

For more information about Deadlock, visit the following Microsoft Developer Network (MSDN) website:
Deadlock (http://msdn.microsoft.com/en-us/library/ms172453.aspx)
For more information about DML, visit the following MSDN website:
DML (http://msdn.microsoft.com/en-us/library/ms174439.aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

A informação contida neste artigo aplica-se a:
  • Microsoft SQL Server Compact 3.5
Palavras-chave: 
kbqfe kbhotfixserver kbexpertiseadvanced kbsurveynew kbautohotfix kbmt KB983516 KbMtpt
Tradução automáticaTradução automática
IMPORTANTE: Este artigo foi traduzido por um sistema de tradução automática (também designado por Machine Translation ou MT), não tendo sido portanto traduzido ou revisto por pessoas. A Microsoft possui artigos traduzidos por aplicações (MT) e artigos traduzidos por tradutores profissionais, com o objetivo de oferecer em português a totalidade dos artigos existentes na base de dados de suporte. No entanto, a tradução automática não é sempre perfeita, podendo conter erros de vocabulário, sintaxe ou gramática. A Microsoft não é responsável por incoerências, erros ou prejuízos ocorridos em decorrência da utilização dos artigos MT por parte dos nossos clientes. A Microsoft realiza atualizações freqüentes ao software de tradução automática (MT). Obrigado.
Clique aqui para ver a versão em Inglês deste artigo: 983516  (http://support.microsoft.com/kb/983516/en-us/ )