You are here: Re: how to recompile / refresh UDFs ? « MsSQL Server « IT news, forums, messages
Re: how to recompile / refresh UDFs ?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация