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;