Consider the following sequence of events:
- A view v_Foo is defined
- A user-defined function GetFoo() is defined that includes all columns from v_Foo (using 'Select * ...')
- The definition of v_Foo changes and now includes more columns
- I now want GetFoo() to include the new columns in v_Foo, but it still references the old definition
I can just re-run the script that created GetFoo in the first place and all will be well; but that's problematic for reasons I won't go into. Is there any other way to refresh the definition of a user-defined function so that it's in sync with its dependent objects?