BEGIN
DECLARE @ TEMP INT
BEGIN TRY
BEGIN TRY
SELECT 1/0
END TRY
BEGIN CATCH
PRINT 'DIVIDE BY ZERO EXCEPTION ENCOUNTERED'
SET @ TEMP = 'ABC'
END CATCH
END TRY
BEGIN CATCH
PRINT 'CONVERSION FAILED'
END CATCH
END
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jenith ThakkarRank #789 · 2.9K reputationPosted Jul 9, 2020, 2:48 AM EDT