Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

User Function Used as Column Default

Status
Not open for further replies.

fluteplr

Programmer
Joined
Oct 23, 2000
Messages
1,599
Location
US
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?


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top