Returns a list of all constraint types, their user-defined or system-supplied name, the columns on which they have been defined, and the expression that defines the constraint (for DEFAULT and CHECK constraints only).
sp_helpconstraint table_name
where
Executing sp_help table_name reports all information about the specified table. To see only the constraint information, use sp_helpconstraint.
Execute permission defaults to the public group.
syscolumns, syscomments, sysconstraints, sysindexes, sysobjects, sysreferences
This example shows all constraints for the employee table.
sp_helpconstraint employee
ALTER TABLE | sp_help |
CREATE TABLE |