Apologies if I am missing anything here.
As a new DBA I have identified that all the servers that I am responsible for across the estate use SQL Server Agent alerts.
These alerts are configured for particular errors such as "Error Number 832" and "Severity 020" for example.
Having taken over responsibility from someone else, I can see that alerts have been set up to send an email to a pre defined group (which is working correctly) as well as notify a pager - there are two options for this, in the options tab and response.
Having done some digging by scripting out the job I have already determined that the "notification_method" parameter for email is 1", by setting this it eliminates the use of pager.
I was wondering whether it is possible to script something that effectively takes all alerts into consideration regardless of name and sets "notification_method =1" which I can blanket run against multiple servers across my estate without the need to open a connection to each SQL server and untick through the UI in SSMS.
This is the script I am left with when editing an alert and unticking the pager options:
EXEC msdb.dbo.sp_update_alert @name=N'Severity 025',
EXEC msdb.dbo.sp_update_notification @alert_name=N'Severity 025', @operator_name=N'SQLDBA', @notification_method = 1
Many thanks in advance for your help!