REFRESH FUNCTION
説明
REFRESH FUNCTION ステートメントは、指定された関数のクラス名とリソースの場所を含むキャッシュされた関数エントリを無効にします。無効化されたキャッシュはすぐに再生成されます。注意点として、REFRESH FUNCTION は永続関数にのみ有効です。ネイティブ関数や一時関数をリフレッシュすると例外が発生します。
構文
REFRESH FUNCTION function_identifier
パラメータ
-
function_identifier
関数名を指定します。これは修飾名または非修飾名のいずれかです。データベース識別子が指定されていない場合は、現在のデータベースが使用されます。
構文:
[ database_name. ] function_name
例
-- 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;