Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deadlock revisited
Message
 
 
To
15/02/2009 19:00:11
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01381607
Message ID:
01382010
Views:
28
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform