Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Alert

Author  Topic 

dewacorp.alliances

452 Posts

Posted - 2008-01-28 : 22:31:02
Hi there

I've created the new alert by going to use the following stored procedure:

EXEC msdb.dbo.sp_add_alert @name=N'Severity
19 Error',
@message_id=0,
@severity=19,
@enabled=1,
@delay_between_responses=180,
@include_event_description_in=7,
@category_name=N'[Uncategorized]',
@job_id=N'00000000-0000-0000-0000-000000000000'
GO

But the result has a strange characters between 'Severity' and '19 Error' in sysalerts column. So I can't even drop this by using sp_delete_alert.

My question is how to access and modify the sysalerts system table cause I don't think you can access system table anymore?

BTW ... I am using the 90.00.3042 (Sp2).

Thanks

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-01-28 : 22:33:11
No you can't. What kind of error did you get when try to delete it?
Go to Top of Page

dewacorp.alliances

452 Posts

Posted - 2008-01-28 : 22:36:41
quote:
Originally posted by rmiao

No you can't. What kind of error did you get when try to delete it?



Msg 14262, Level 16, State 1, Procedure sp_delete_alert, Line 30
The specified @name ('Severity 19 Error') does not exist.

Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2008-01-28 : 22:42:54
Tried copy whatever name from sysalerts and put it in sp_delete_alert?
Go to Top of Page

dewacorp.alliances

452 Posts

Posted - 2008-01-28 : 22:47:11
quote:
Originally posted by rmiao

Tried copy whatever name from sysalerts and put it in sp_delete_alert?



It works! By going to

EXEC msdb.dbo.sp_delete_alert @name=N'Severity
19 Error'

Have a new line after Severity.

Thanks


Go to Top of Page
   

- Advertisement -