How do I list all the constriants that exist on one column? sp_helpconstraint will list all constraints for the table as does select * from sysobjects where objectproperty(id,N'IsConstraint')=1 and
parent_obj=coalesce(object_id('di_menus'),'-1').
I'm trying to delete a column programmatically and the constraints on that column could vary per db so it needs to be dynamic.
Thanks!
parent_obj=coalesce(object_id('di_menus'),'-1').
I'm trying to delete a column programmatically and the constraints on that column could vary per db so it needs to be dynamic.
Thanks!