You are here: Re: can't alter function « MsSQL Server « IT news, forums, messages
Re: can't alter function

Posted by Razvan Socol on 01/11/07 15:41

Barry wrote:
> In sqlserver 2000 I have a UDF which works fine but I want to make a
> change to it. When I do an ALTER FUNCTION ... I get an error saying
> that I can't alter the function because it is referenced by an object.
> Is there any way around this? I reference the UDF in over 100 tables,
> do I have to go to each table, remove the all references alter the
> function then edit each 100 tables again? How clumsy can it be?

Yep, that's it. You can generate a script for the drop/recreate of the
objects that reference the function, using the information from the
system tables. What kind of objects are we talking about
(defaults/check constraints/computed columns) ?

Razvan

 

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

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