ScG
ScG

Reputation: 1073

Stored Procedure error

I am testing something. I want to write a statement in my stored procedure that raises an exception/error. I do not want the dividebyzero exception. Any other statement that raises an exception will work. Any help?

Upvotes: 0

Views: 52

Answers (1)

Daniel Pryden
Daniel Pryden

Reputation: 60997

You can use the RAISERROR statement for that purpose.

Upvotes: 1

Related Questions