I just hit an interesting problem. I have a user function that I used as a column default in about 60 tables. I need to change the user function slightly but cannot because it is being referenced by the column defaults.
Does anyone have a piece of tsql code that would let me script off all the default column values, delete the defaults and then replace them after I modify the user function?
Does anyone have a piece of tsql code that would let me script off all the default column values, delete the defaults and then replace them after I modify the user function?