Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deadlock revisited
Message
 
 
À
15/02/2009 19:00:11
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01381607
Message ID:
01382010
Vues:
27
>>According to the execution plan, SQL engine runs 2 separate queries and than merges them. I would bet that the execution plan for a JOIN query would be the same or close. IOW, I don't thibnk that switching to exists changed anything.
>>
>>SELECT Member.Numero,Member.Nom,Member.Prenom,Member.LastAccess
>> FROM Member
>> WHERE Member.LastAccess>=@LastAccess AND
>>-- And 
>>SELECT Monitor.NoMember2 FROM Monitor WHERE Monitor.NoMember=@NoMember
>>
>>
>>I don''t see anything wrong with query itself. Are there any other SQL statement in your system that uses those 2 tables and could cause the deadlock?
>
>Ok, I see. Let me check that. That's probably what causes this. I also got that one one more time today and the traffic was low. So, it is certainly related to another hit that is affecting this. I will let you know.

UPDATE or INSERT into these two tables happening in exactly the same time as you do SELECT-SQL.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform