REFRESH FUNCTION

説明

REFRESH FUNCTION ステートメントは、指定された関数のクラス名とリソースの場所を含むキャッシュされた関数エントリを無効にします。無効化されたキャッシュはすぐに再生成されます。注意点として、REFRESH FUNCTION は永続関数にのみ有効です。ネイティブ関数や一時関数をリフレッシュすると例外が発生します。

構文

REFRESH FUNCTION function_identifier

パラメータ

-- The cached entry of the function will be refreshed
-- The function is resolved from the current database as the function name is unqualified.
REFRESH FUNCTION func1;

-- The cached entry of the function will be refreshed
-- The function is resolved from tempDB database as the function name is qualified.
REFRESH FUNCTION db1.func1;