In our SQL Server 2008 Agent properties dialog box we have set an Alert System settings as shown below. But when we try to generate a script for that we get the following message - hence unable to generate a T-SQL script. Is there a T-SQL script or stored procedure to create such setting:
UPDATE Please note that this is not to create an alert. Instead, it's an step shown here to set the System Alert property of the SQL Server Agent when configuring a Database Mail (also shown in the above link)