<EventClassName> View
Notification Services creates one view for each event class defined in an application. This view has the same name as the event class, and is located in the application's schema. For example, if an application has an event class named WeatherData and the application schema is News, the view is News.WeatherData.
You can use this view to submit event data to an event class.
| Column | Data type | Description |
|---|---|---|
|
EventId |
bigint |
Event identifier. This is an IDENTITY column. Notification Services determines the Event ID when an event is inserted. If you insert data into this view, the EventId value must be NULL. |
|
EventClassFieldName (1-n) |
application-defined |
All columns specified in the event class also appear in this view. |
If you have an event class with the fields City, Date, Low, High, and Forecast, you can insert event data into the event class view using the following INSERT statement:
USE TutorialWeather; GO INSERT INTO dbo.WeatherData (City, Date, Low, High, Forecast) VALUES (N'Shoreline', GetDate(), 40, 55, N'Partly Cloudy'); GO
