Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deadlock revisited
Message
From
16/02/2009 16:14:34
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01381607
Message ID:
01382198
Views:
42
>It's not a simple tasks to avoid deadlocks sometimes. You should read more on deadlocks, what causes them and how to avoid them.
>In general, the most common cause of deadlock is when statement 1 locks table A and than B and Statement 2 locks table B and Then A. It's simplified example but may give you an idea where to look.

But, as those situations can happen, having a retry mechanism would help.Basically, I can detect this error and retry. This only occurs at the SQL Exec command. So, as a safety measure, this is something I can do at first. Then, I can take a look at where exactly this is caused.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform