sp_delete_alert (Transact-SQL)

Removes an alert.

Ikona łącza do tematu Transact-SQL Syntax Conventions

Składnia

sp_delete_alert [ @name = ] 'name'

Arguments

  • [ @name= ] 'name'
    The name of the alert. name is sysname, with no default.

Return Code Values

0 (success) or 1 (failure)

Result Sets

None

Uwagi

Removing an alert also removes any notifications associated with the alert.

Permissions

Only members of the sysadmin fixed server role can execute this procedure.

Examples

The following example removes an alert named Test Alert.

USE msdb ;
GO

EXEC dbo.sp_delete_alert
   @name = N'Test Alert' ;
GO

Zobacz także

Odwołanie

sp_add_alert (Transact-SQL)

sp_help_alert (Transact-SQL)

System Stored Procedures (Transact-SQL)