다음을 통해 공유


IndexSqlSchema Element for SubscriptionClass (ADF)

Contains Transact-SQL statements for creating one or more indexes on a subscription table.

구문

<SubscriptionClasses>
    <SubscriptionClass>
        ...
        <IndexSqlSchema>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Optional once per SubscriptionClass element.

Updates

Can be added and deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

SubscriptionClass Element (ADF)

Child elements

SqlStatement Element for SubscriptionClass/IndexSqlSchema (ADF)

주의

If you add or delete an IndexSqlSchema element, updating the application re-creates the subscription class to which it corresponds. SQL Server 2005 Notification Services renames existing subscription tables by appending Old to the name and then creates new subscription tables. Existing subscription table indexes remain unchanged.

If you want to copy data between the old and new subscription tables, you must do so after updating the application. For more information, see 응용 프로그램 업데이트.

The following example shows how to create an index named StockSubIndex on the SubscriberId field of the StockSubscriptions table in the application database.

<IndexSqlSchema>
    <SqlStatement>
    CREATE INDEX StockSubIndex
    ON StockSubscriptions (SubscriberId)
    </SqlStatement>
</IndexSqlSchema>

참고 항목

참조

Application Definition File Reference

관련 자료

구독 클래스에 대한 인덱스 정의
인스턴스 및 응용 프로그램 업데이트

도움말 및 정보

SQL Server 2005 지원 받기