Link to home
Start Free TrialLog in
Avatar of 25112
25112

asked on

default constraint within a function

in sys.all_objects I see some default constraints, whose parent object is a function.. what syntax can be used to create such within a UDF?
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 25112
25112

ASKER

thanks for that code example.
can you define the name of the default constraint in the code block? (so that when you do a search on sys.all_object where parent_id=UDF_id
then we see meaningful entries..

(just to clarify, i would refer to type ='d' in sys.all_objects..)
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial