共用方式為


Field Element for SubscriptionClass/Schema (ADF)

Provides a location for defining one subscription class field.

語法

<SubscriptionClasses>
    <SubscriptionClass>
        ...
        <Schema>
            <Field>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Required once or more per Schema element.

Updates

Can be added and deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

Schema Element for SubscriptionClass (ADF)

Child elements

FieldName Element for SubscriptionClass/Schema/Field (ADF)

FieldType Element for SubscriptionClass/Schema/Field (ADF)

FieldTypeMods Element for SubscriptionClass/Schema/Field (ADF)

備註

Notification Services automatically adds SubscriberID, Created, Updated, and Enabled fields to the subscription class schema.

If you add or delete a Field, updating the application re-creates the subscription class to which it corresponds. A new subscription table is created, and the existing subscription table is renamed to SubscriptionTableNameOld. Existing subscription table indexes are left unchanged.

If you want to transfer data between the old and new subscription tables, it must be done manually. For more information, see 更新應用程式.

範例

The following example shows the definition of a SubscriberLocale subscription field.

<Field>
    <FieldName>SubscriberLocale</FieldName>
    <FieldType>nvarchar(10)</FieldType>
    <FieldTypeMods>NOT NULL</FieldTypeMods>
</Field>

請參閱

參考

Application Definition File Reference

其他資源

定義訂閱結構描述
更新執行個體及應用程式

說明及資訊

取得 SQL Server 2005 協助