Freigeben über


Schema Element for NotificationClass (ADF)

Contains elements that define notification class fields.

Syntax

<NotificationClasses>
    <NotificationClass>
        ...
        <Schema>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Required once per NotificationClass element.

Updates

Cannot be added or deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

NotificationClass Element (ADF)

Child elements

Fields Element for Schema (ADF)

ComputedFields Element (ADF)

Hinweise

A notification class schema defines the schema of the notification data in the application database. SQL Server 2005 Notification Services uses the fields defined in the schema to construct a table to store the notification data. Notification Services adds columns to the table for identifying and tracking notifications and to identify the subscriber, device, and locale.

Beispiel

The following example shows a Schema element that defines three notification fields: a 10-character stock symbol field, and a stock value field that accepts monetary data, and a computed field that determines how much the stock price has changed.

<Schema>
    <Fields>
        <Field>
            <FieldName>StockSymbol</FieldName>
            <FieldType>char(10)</FieldType>
            <DigestGrouping>true<DigestGrouping>
        </Field>
        <Field>
            <FieldName>StockPrice</FieldName>
            <FieldType>money</FieldType>
        </Field>
    </Fields>
    <ComputedFields>
        <ComputedField>
            <FieldName>StockPriceChar</FieldName>
            <SqlExpression>CONVERT(NVARCHAR(10), StockPrice, 1)
            </SqlExpression>
        </ComputedField>
    </ComputedFields>
</Schema>

Siehe auch

Verweis

Application Definition File Reference

Andere Ressourcen

Definieren des Benachrichtigungsschemas
Aktualisieren von Instanzen und Anwendungen

Hilfe und Informationen

Informationsquellen für SQL Server 2005