Replies: 2 comments
|
I have a feature called LockMessageSeverity: https://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html#LockMessageSeverity This basically changes the severity of lock timeouts and deadlocks from 16 to 10 to prevent the job from reporting failure. Currently it checks for (1205, 1222). I will add 5245 to the list of error numbers here as well. As for why you get the error in the first place, I don't know. For that I would recommend opening a support case with Microsoft. |
0 replies
|
I have added 5245 as a locking error number. Thank you for reporting this issue. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am running the integritycheck with 'CHECKTABLE' , @tablock = 'Y', a @LockTimeout of 5 and a @LockMessageSeverity of 10. However, when running and hitting a table which is being used I get error 5245 (which is almost the same as error 1222). Since this error is not handled in the stored procedure, it's always returning severity 16 resulting in a failed operation. Am I doing something wrong, or should I classify this as a bug? (using SQL 2022)
All reactions