Is there a way to handle the database deadlock? I run a script each day and every week I have database deadlock and I become the victim. I and several other people have access to the database. I’m not looking for a way to stop deadlock although I wish I can do that. I use the database to do update therefore can’t kill the connection. I’m looking for a way to trap the error in the script. Any suggestion how I could do this?