Invalidates the cached function entry, which includes a class name
and resource location of the given function. The invalidated cache is populated right away.
REFRESH FUNCTION only works for permanent functions. Refreshing native functions or temporary functions will cause an exception.
A function name, which is either a qualified or unqualified name. If no database identifier is provided, uses the current database.
-- The cached entry of the function is refreshed -- The function is resolved from the current database as the function name is unqualified. REFRESH FUNCTION func1; -- The cached entry of the function is refreshed -- The function is resolved from tempDB database as the function name is qualified. REFRESH FUNCTION db1.func1;