Share via


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.

[!참고] 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