An event notification sends information about a database or server event to a service broker service. Event notifications are created only by using Transact-SQL statements. PowerDesigner models event notifications as extended objects with a stereotype of <<EventNotification>>.
You can modify an object's properties from its property sheet. To open an event notification property sheet, double-click its Browser entry.
The following extended attributes are available on the Microsoft tab:
Name |
Description |
---|---|
Applies on |
Specifies the scope of the event notification. You can choose between:
Scripting name: AppliesOn |
Queue |
Specifies the queue to which the event notification applies. Available only if Applies on is set to "queue". Scripting name: Queue |
With fan in |
Instructs SQL Server to send only one message per event to any specified service for all event notifications that: Scripting name: WithFanIn |
Events |
Specifies the name of the event type that causes the event notification to execute. Can be a Transact-SQL DDL, SQL Trace, or Service Broker event type. Scripting name: Events |
Service |
Specifies the target service that receives the event instance data. SQL Server opens one or more conversations to the target service for the event notification. This service must honor the same SQL Server Events message type and contract that is used to send the message. See Services. Scripting name: Service |
Instance |
Specifies a service broker instance against which broker_service is resolved. Use 'current database' to specify the service broker instance in the current database. Scripting name: Instance |