General information
Forum:
Microsoft SQL Server
Couple of suggestions from a section in a book I have concerning avoiding deadlocks.
(1) Always access objects in same order- if two processes are updating in same order, deadlock can not occur because one table will always get the lock, locking the other out. Also, moving to stored procedures helps in this regard because it centralizes code.
(2) Keep transactions as short as possible
(3) Keep isolations levels as low as possible.
Charlie
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only