dbTalk Databases Forums  

Alert doesn't work on SQL 2005

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss Alert doesn't work on SQL 2005 in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Patrick
 
Posts: n/a

Default Alert doesn't work on SQL 2005 - 01-29-2008 , 04:50 PM






Hi,

I have trouble getting the alerts to work on SQL 2005.

Below I define a custom message and a custom alert.
When I raise the error though the alert never fires.

Any ideas why that would be?

Thanks,
Patrick

-------------------------------------------------------
USE master
GO
EXEC sp_addmessage 50001, 16, N'The version of SQL Server has been
requested.'
GO

------------------------------------------------------
USE [msdb]
GO
EXEC msdb.dbo.sp_add_alert @name=N'TEST Alert',
@message_id=50001,
@severity=0,
@enabled=1,
@delay_between_responses=5,
@include_event_description_in=5,
@notification_message=N'TEST',
@category_name=N'[Uncategorized]',
@job_id=N'00000000-0000-0000-0000-000000000000'

------------------------------------------------------
RAISERROR (50001, 16, 1)
------------------------------------------------------

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.