tags:

views:

20

answers:

1

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?

+1  A: 

You can use the RAISERROR statement for that purpose.

Daniel Pryden