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;