Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

SQL Server Error 1095: Event Already Specified Fix

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

SQL Server error 1095, "The event has already been specified," occurs when a SQL Server Agent alert or a Windows event notification is defined more than once for the same event. The fix is to identify the duplicate definition and either remove the extra one or correct the original so the event is specified only once. This guide walks you through the safe way to do that using SQL Server Management Studio (SSMS) and T-SQL, without breaking existing monitoring.

What You'll Need

  • SQL Server Management Studio (SSMS) installed and connected to the affected instance.
  • Membership in the sysadmin fixed server role, or permission to manage SQL Server Agent alerts and operators.
  • Access to the Windows Event Viewer on the SQL Server host if the duplicate involves Windows event log alerts.
  • A backup or export of the current alert definitions before you change anything (for example, script them out with Object Explorer).

Step-by-Step

  1. Confirm the exact error context. Error 1095 typically appears when you run sp_add_alert or create an alert in SSMS, or when SQL Server Agent starts and tries to register an alert that is already present. Note the alert name, the event source, and whether you were creating a new alert or modifying an existing one. This tells you whether the duplicate is in SQL Server Agent or in the Windows event log configuration.
  2. List existing alerts. In SSMS, expand SQL Server Agent > Alerts. Review the list for an alert that already covers the same event. You can also run SELECT name, event_source, message_id, severity, enabled FROM msdb.dbo.sysalerts; to see all alerts in one place. Look for two rows with the same event_source, message_id, and severity combination.
  3. Identify the duplicate. Compare the alert you are trying to create with the existing one. If the existing alert is enabled and working, you do not need a second one; use the existing alert and add or change its response (operator, job, or notification) instead. If the existing alert is a leftover or misconfigured, you can remove or correct it.
  4. Remove or rename the duplicate. To remove a duplicate alert, right-click it in SSMS and choose Delete, or run EXEC msdb.dbo.sp_delete_alert @name = N'AlertName';. To keep both but avoid the conflict, change the event definition of one alert so it no longer targets the same event. Do not delete an alert that is actively used for monitoring unless you have confirmed it is safe to remove.
  5. Recreate the alert correctly. Once the duplicate is gone, create the alert again in SSMS (SQL Server Agent > Alerts > New Alert) or with sp_add_alert. Specify the event source, message ID, severity, and response exactly once. If you are using a WMI event alert, make sure the WMI query is not already covered by another alert.
  6. Check Windows event log alerts. If the duplicate involves Windows event log entries, open Event Viewer on the SQL Server host, navigate to Windows Logs > Application (or the relevant log), and check for duplicate custom views or task registrations that reference the same event. Remove any duplicate task or view. This step may require local administrator rights.
  7. Restart SQL Server Agent and test. In SSMS, right-click SQL Server Agent and choose Restart, or use SQL Server Configuration Manager. Then trigger a test event (for example, raise a test error with a matching severity) and confirm the alert fires once, not twice. Check the SQL Server Agent error log for any remaining 1095 messages.

Common Mistakes

  • Deleting the wrong alert because two alerts have similar names but different event definitions. Always compare the event source, message ID, and severity before deleting.
  • Creating a second alert for the same event instead of editing the existing one. SQL Server Agent does not merge alerts; it rejects the duplicate.
  • Ignoring Windows event log duplicates. Error 1095 can also come from a duplicate Windows event subscription, not just from SQL Server Agent.
  • Forgetting to script out the existing alert before deleting it, which makes it hard to restore if the deletion was a mistake.
  • Assuming the error is harmless. A duplicate alert can cause double notifications or missed alerts if the wrong one is disabled.

Tips

  • Use descriptive alert names that include the event source and message ID, so duplicates are easier to spot later.
  • Keep a change log of alert definitions and who changed them; this speeds up troubleshooting when 1095 reappears.
  • Prefer editing an existing alert over creating a new one when the event is already covered.
  • Test alerts in a non-production instance first if you are unsure how they behave.
  • Review alerts periodically and remove ones that are disabled or no longer relevant.

Troubleshooting

If error 1095 persists after removing the obvious duplicate, check for alerts defined at both the server and database level, and for alerts created by third-party monitoring tools. Query msdb.dbo.sysalerts again to confirm no duplicate remains. If the error appears during SQL Server Agent startup, review the SQL Server Agent error log for the exact alert name and event details. If you cannot delete an alert because it is in use, disable it first, then investigate. When the duplicate is in Windows Task Scheduler or Event Viewer, you may need to remove the task or custom view manually. Always back up the msdb database before making bulk changes to alerts, and avoid deleting system alerts that ship with SQL Server unless you are certain they are not needed.

Frequently Asked Questions

What causes SQL Server error 1095?

It is caused by defining the same event more than once, usually as a duplicate SQL Server Agent alert or a duplicate Windows event log subscription.

Can I ignore error 1095?

You can, but the duplicate alert may cause double notifications or confusion. It is better to resolve it by removing or correcting the duplicate.

Does error 1095 affect database performance?

No, it is a configuration error related to alerts and notifications, not a query performance issue.

How do I find which alert is duplicated?

Query msdb.dbo.sysalerts and look for rows with the same event source, message ID, and severity. Compare names and enabled status.

Can I recreate an alert after deleting it?

Yes, but script it out first so you can recreate it with the same settings. Use SSMS to generate a CREATE script for the alert.

Is error 1095 related to Windows Event Viewer?

It can be. If the duplicate is a Windows event log alert, check Event Viewer and Task Scheduler for duplicate entries.