IndexSqlSchema Element for EventClass (ADF)

Contains Transact-SQL statements for creating one or more indexes on an event table.

语法

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

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Optional once per EventClass element.

Updates

Can be added and deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

EventClass Element (ADF)

Child elements

SqlStatement Element for EventClass/IndexSqlSchema (ADF)

备注

ms145895.note(zh-cn,SQL.90).gif重要提示:
If you add or delete an IndexSqlSchema 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 how to create an index named StockIndex on the StockSymbol field of the StockEvents table in the application database.

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

请参阅

参考

Application Definition File Reference

其他资源

为事件类定义索引
更新实例和应用程序

帮助和信息

获取 SQL Server 2005 帮助