About this question
How can I write guarded code that invokes the CATCH code block in every expected* case (without doing any funky junk like wrapping everything in dynamic SQL)? For example, this does not work: Define a SQL Agent job with no steps Try to start the job inside a TRY/CATCH
Note that its error severity is 16 so it should not have bypassed the CATCH block. wtf?!?It also bypasses my CATCH block if the job is busy handling a request (I'm spamming stop and start requests in my testing).