• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 370
  • Last Modified:

how to raise user defined alert

It is sql server 2000, I set a user defined alert (error number 99999) from Management->Alert in Enterprise manager, then I try to triger this error by sql statement, something like raiserror 99999, 'test error'.

But the alert is not triggered, why?
1 Solution
if exists(select 1 from person where username = @username and personid != @PersonID)
                     RAISERROR (50007, 15, 1)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now