Using dbo.tsf_user() in a default value expression gives errors during execution of the source code.
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/8a20084a-7927-49d0-962b-898a5a16f336.png)
![](https://uploads-eu-west-1.insided.com/thinkwise-en/attachment/92705554-e516-4306-9071-b966d651c4a4.png)
Cannot DROP FUNCTION 'tsf_user' because it is being referenced by object 'DF_prd_insert_user'.
/* Drop function tsf_user first. */
if exists (select 1 from sysobjects
where name = 'tsf_user' and (type = 'FN' or type = 'TF' or type = 'IF'))
drop function tsf_user
Any workaround ideas?