2. Error 1205 :
Transaction (Process ID) was deadlocked
on resources with another process and
has been chosen as the deadlock victim.
Rerun the transaction
3. Error 1205 :
Transaction (Process ID) was
deadlocked on resources with
another process and has been chosen as
the deadlock victim.
Rerun the transaction
5. Prevention
• Access server objects in the same order.
• Avoid cursors, while loops, or process which
requires user input within the transaction.
• Reduce locking level.
6. • Minimize the size of transaction and
transaction times.
– Fit indexes to queries.
– Prepare relevant data in temporary tables.
• Minimize application transactions or cross-
server transactions.
Prevention cont.