sp_delete_alert (Transact-SQL)
Applies to:
SQL Server
Removes an alert.
Transact-SQL syntax conventions
Syntax
sp_delete_alert [ @name = ] N'name'
[ ; ]
Arguments
[ @name = ] N'name'
The name of the alert. @name is sysname, with no default.
Return code values
0
(success) or 1
(failure).
Result set
None.
Remarks
Removing an alert also removes any notifications associated with the alert.
Permissions
This stored procedure is owned by the db_owner role. You can grant EXECUTE
permissions for any user, but these permissions may be overridden during a SQL Server upgrade.
Examples
The following example removes an alert named Test Alert
.
USE msdb;
GO
EXEC dbo.sp_delete_alert
@name = N'Test Alert';
GO
Related content
प्रतिक्रिया
https://aka.ms/ContentUserFeedback.
जल्द आ रहा है: 2024 के दौरान हम सामग्री के लिए फीडबैक तंत्र के रूप में GitHub मुद्दों को चरणबद्ध तरीके से समाप्त कर देंगे और इसे एक नई फीडबैक प्रणाली से बदल देंगे. अधिक जानकारी के लिए, देखें:के लिए प्रतिक्रिया सबमिट करें और देखें