ReCompileReferences Method

この機能は、将来のバージョンの Microsoft SQL Server では削除される予定です。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションは修正することを検討してください。

The ReCompileReferences method causes recompilation, prior to the next execution, of any stored procedure or trigger depending on the referenced table.

構文

object
.ReCompileReferences(
)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

Prototype (C/C++)

HRESULT ReCompileReferences();

解説

Microsoft SQL Server stored procedures and triggers are compiled to enhance execution time. Creation of indexes and changes in data distribution statistics can cause obsolescence in a data access plan in a stored procedure or trigger. The ReCompileReferences method forces recompilation of all stored procedures or triggers accessing the referenced table, and defined in the database of the referenced table.

ms138478.note(ja-jp,SQL.90).gifメモ :
SQL Server version 7.0 recompiles stored procedures and triggers when the optimizer determines that recompilation is advantageous. Using the ReCompileReferences method is not required in most instances.

Applies To:

Table Object