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;