| 
	
 | 
 Posted by Marcin A. Guzowski on 03/06/07 17:17 
Hi Ben, 
 
> Hi! 
> I need to refresh an entire database. 
>  
> I can recompile SPs with sp_recompile (or DBCC FLUSHPROCINDB), and 
> refresh views with sp_refreshView, but I cannot find any way to 
> refresh my user-defined functions (some of them are like views, with 
> parameters). 
 
 
I'm afraid that no such procedure/DBCC command exists to recompile a  
function. IMHO the best way to refresh function meta-data is to ALTER  
it. That's better solution than dropping and creating (recreating) a  
function, because when using ALTER FUNCTION permissions are retained. 
 
 
--  
Best regards, 
Marcin Guzowski 
http://guzowski.info
 
  
Navigation:
[Reply to this message] 
 |