Hello Guys,
Help me,
How to throw custom exception in Stored Procedure?
Thanks
How to throw custom exception in Stored Procedure?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
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 attend5days leftRegister
kannan s65 reputationPosted Jul 7, 2011, 12:53 AM EDT
you can use RAISERROR in SP
RAISERROR('test exception',16,-1)
Thanks
Amit ChoudharyRank #145 · 15.8K reputationPosted Jul 7, 2011, 1:05 AM EDT
For more details of level of raising custom error message please go through the nice article here
Thanks.