SQL Server Error 1085: Event Type Not Supported
In this article
SQL Server Error 1085 occurs because you are attempting to create an Event Notification for an event that does not support this specific feature. To resolve this, you must identify the unsupported event in your CREATE EVENT NOTIFICATION statement and replace it with a supported event or use SQL Server Extended Events for more granular tracking. Event Notifications are designed for high-level DDL (Data Definition Language) changes, and they cannot be used for DML (Data Manipulation Language) or internal engine events.
What You'll Need
- SQL Server Management Studio (SSMS) installed and connected to the target instance.
- Administrative permissions (sysadmin role) to create or modify server-level notifications.
- A pre-existing Service Broker object (Queue and Service) to receive the notification messages.
- Access to the system views to verify supported event types.
Step-by-Step
- Identify the Failing Statement: Locate the exact T-SQL script that is triggering Error 1085. This is usually a
CREATE EVENT NOTIFICATIONcommand. Examine theFORclause of the statement to see which event you are trying to monitor (e.g.,ALTER_TABLE,CREATE_DATABASE, or a custom event). - Verify Event Support: Check if the event you selected is actually supported by the Event Notification feature. Event Notifications are strictly limited to a specific set of DDL events. You can verify the available events by querying the system metadata or referring to the official documentation for your specific version of SQL Server. If you are trying to track
INSERT,UPDATE, orDELETEoperations, these are not supported by Event Notifications and will always trigger Error 1085. - Remove Unsupported Events: Edit your T-SQL script to remove the event causing the conflict. If you have a comma-separated list of events in your
FORclause, isolate the one that is not a DDL event. For example, if your code looks likeFOR ALTER_TABLE, SOME_UNSUPPORTED_EVENT, removeSOME_UNSUPPORTED_EVENT. - Implement a Supported DDL Event: Replace the unsupported event with a valid DDL event. Common supported events include
CREATE_TABLE,DROP_TABLE,ALTER_PROCEDURE, andCREATE_INDEX. Ensure the syntax follows the required pattern:CREATE EVENT NOTIFICATION [NotificationName] ON SERVER FOR [SupportedEvent] TO SERVICE '[ServiceName]', 'current database'. - Execute the Corrected Script: Run the modified
CREATE EVENT NOTIFICATIONcommand in a new query window in SSMS. If the event is supported and the Service Broker infrastructure is correctly configured, the command will execute without Error 1085. - Verify Notification Delivery: Perform the action that triggers the notification (e.g., create a dummy table) and check your Service Broker queue to ensure the XML message was delivered. Use a
RECEIVEstatement on your queue to confirm the event was captured. - Transition to Extended Events (Optional): If the event you need to track is fundamentally unsupported by Event Notifications (such as a login failure or a specific query execution), you must switch to SQL Server Extended Events (XEvents). Open SSMS, navigate to Management > Extended Events > Sessions, and create a new session. Add the specific event you need from the event library, configure the target (such as a ring buffer or a file), and start the session.
Common Mistakes
The most frequent mistake leading to Error 1085 is confusing Event Notifications with Extended Events or SQL Server Audit. Many administrators assume that because they can track a specific action in a Profiler trace or an Extended Event session, they can also use it in an Event Notification. This is incorrect. Event Notifications are a specialized feature of Service Broker and are intentionally limited to a small subset of server-level and database-level DDL changes.
Another common error is attempting to use a database-level event in a server-level notification without proper scoping. While some events are available at both levels, attempting to mix them or apply a database-specific event to a ON SERVER notification can sometimes lead to configuration errors, although Error 1085 specifically points to the event type itself being incompatible with the notification mechanism.
Users also frequently forget to enable Service Broker on the database where the notification queue resides. While this usually results in a different error, it often leads users to tweak the CREATE EVENT NOTIFICATION statement in ways that introduce unsupported event types while they are trying to debug the underlying connectivity issue.
Tips
To avoid Error 1085 in the future, always start by defining your goal: do you need a real-time asynchronous message sent to a queue (Event Notification), or do you need a detailed log of system activity (Extended Events)? If the answer is the former, stick strictly to DDL events. If the answer is the latter, avoid Event Notifications entirely.
When working with Event Notifications, use a naming convention for your Service Broker services and queues that clearly indicates they are for notifications. This prevents other developers from accidentally purging the queue or modifying the service, which would break the notification pipeline even if the event type is correctly supported.
If you are managing a large environment with many databases, consider using a server-level notification rather than individual database-level notifications. This reduces the overhead of managing multiple Service Broker configurations and ensures that DDL changes across the entire instance are captured in a single centralized queue.
Troubleshooting
If you have removed the unsupported event but are still encountering issues, first check the status of your Service Broker. Run SELECT is_broker_enabled FROM sys.databases WHERE name = 'YourDatabaseName'. If the value is 0, you must enable it using ALTER DATABASE YourDatabaseName SET ENABLE_BROKER. Note that this command may require an exclusive lock on the database, so you may need to kick off other users or set the database to single-user mode temporarily.
If the notification is created successfully but no messages are appearing in the queue, verify the permissions of the service account running SQL Server. The account must have the necessary permissions to send messages via Service Broker. Additionally, check if the destination service is actually listening. If the service name in the CREATE EVENT NOTIFICATION statement does not exactly match the name of the created service, the messages will be dropped or sent to the dead-letter queue.
If you suspect the event you are using is supported but still getting Error 1085, verify your SQL Server version and edition. Some events are only available in Enterprise Edition or were introduced in later Service Packs. Ensure your instance is fully patched to the latest Cumulative Update (CU) to ensure all supported event types are recognized by the engine.
Frequently Asked Questions
Can I use Event Notifications to track data changes in a table?
No. Event Notifications only support DDL events (like creating or altering tables). To track data changes (INSERT, UPDATE, DELETE), you should use Change Data Capture (CDC), SQL Server Audit, or triggers.
What is the difference between Event Notifications and Extended Events?
Event Notifications use Service Broker to send asynchronous messages when specific DDL events occur. Extended Events are a lightweight performance monitoring system that can track almost any internal engine event and write the data to a file or memory buffer.
Which events are definitely supported by Event Notifications?
Events such as CREATE_TABLE, ALTER_TABLE, DROP_TABLE, CREATE_PROCEDURE, ALTER_PROCEDURE, and DROP_PROCEDURE are standard supported events for this feature.
Does Error 1085 mean my Service Broker is broken?
No. Error 1085 is specifically a syntax and compatibility error regarding the event type you chose. It does not indicate a failure of the Service Broker service itself, but rather an invalid request sent to it.
How do I delete an existing Event Notification to start over?
Use the DROP EVENT NOTIFICATION [NotificationName] command. If it was created at the server level, ensure you are in the master database or specify the scope correctly before executing the drop command.