다음을 통해 공유


SqlStatement Element for EventClass/IndexSqlSchema (ADF)

Contains a Transact-SQL statement that creates a SQL Server index for the event table.

구문

<EventClasses>
    <EventClass>
        ...
        <IndexSqlSchema>
            <SqlStatement>

Element Characteristics

Characteristic Description

Data type

string, between 1 and 100,000 characters in length.

Default value

None.

Occurrence

Optional once or more per IndexSqlSchema element.

Updates

Can be added, deleted, and modified when updating the application.

Element Relationships

Relationship Elements

Parent element

IndexSqlSchema Element for EventClass (ADF)

Child elements

None.

주의

Notification Services automatically creates indexes on the event ID and event batch ID, which improves vacuuming performance.

ms145887.note(ko-kr,SQL.90).gif중요:
If you add, delete, or update an indexing SqlStatement element, updating the application deletes and re-creates the event class to which it corresponds. This includes dropping and re-creating the SQL Server tables and indexes used by this event class. Any data existing in the original SQL Server tables is permanently deleted.

The following example shows a SqlStatement element that creates an index on the StockEvents table.

<SqlStatement>
CREATE INDEX StockIndex
ON StockEvents (StockSymbol);
</SqlStatement>

참고 항목

참조

Application Definition File Reference

관련 자료

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

도움말 및 정보

SQL Server 2005 지원 받기