question

liton avatar image
liton asked

Error trapping in the script

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?
error-trap
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
ThomasRushton avatar image
ThomasRushton answered
1 comment
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

+1 for Thomas and that is the answer, but I personally would try and resolve the deadlock.
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.