Is there a TSQL script that will allow me to see the contents of a constraint. I found a question regarding Oracle but I need a TSQL script.
How to see contents of Check
Another way
for check constraints
select definition,name
from sys.check_constraints
for default constraints
select definition,name
from sys.default_constraints
and yet another way
SELECT object_definition(OBJECT_ID(CONSTRAINT_NAME)),*
FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
where CONSTRAINT_TYPE <> 'PRIMARY KEY'