Hello,
I have a small SQL Server running that services some users.
I wish to set up an alert when an extarnal feed fails or a stored Procedure completes etc.
In order to inform me of when an extarnal feed fails, I need to put a value into a table.
When a value is placed in this table I want an error e-mail sent to me and to put a value in another table.
I have set up my Message, and set up the alert, however when I execute the commant RaisError, all I get is the out put. I have also asked the alert to trigger a job, so I know it is something to do with the Alert.
The raise Error cmd doesn't seem to be triggering the Alert.
Am I missing something?
Insert into Error_Log_Table "Job 1 Failed"
RaisError (50001, 0, 1)
GO
Call Alert:
Executes Job -
Sends Mail - Error Msg
Any ideas?
Thanks in Advance,
Liam.
I have a small SQL Server running that services some users.
I wish to set up an alert when an extarnal feed fails or a stored Procedure completes etc.
In order to inform me of when an extarnal feed fails, I need to put a value into a table.
When a value is placed in this table I want an error e-mail sent to me and to put a value in another table.
I have set up my Message, and set up the alert, however when I execute the commant RaisError, all I get is the out put. I have also asked the alert to trigger a job, so I know it is something to do with the Alert.
The raise Error cmd doesn't seem to be triggering the Alert.
Am I missing something?
Insert into Error_Log_Table "Job 1 Failed"
RaisError (50001, 0, 1)
GO
Call Alert:
Executes Job -
Sends Mail - Error Msg
Any ideas?
Thanks in Advance,
Liam.