sp_helpconstraint (Transact-SQL)
SQL Server 2005
Updated:
14 April 2006
ALTER TABLE (Transact-SQL)
CREATE TABLE (Transact-SQL)
sp_help (Transact-SQL)
System Stored Procedures (Transact-SQL)
sys.key_constraints (Transact-SQL)
sys.check_constraints (Transact-SQL)
sys.default_constraints (Transact-SQL)
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).
Transact-SQL Syntax Conventions
- [ @objname = ] 'table'
-
Is the table about which constraint information is returned. The table specified must be local to the current database. table is nvarchar(776), with no default.
- [ @nomsg =] 'no_message'
-
Is an optional parameter that prints the table name. no_message is varchar(5), with a default of msg. nomsg suppresses the printing.
Reference
Database Engine Stored Procedures (Transact-SQL)ALTER TABLE (Transact-SQL)
CREATE TABLE (Transact-SQL)
sp_help (Transact-SQL)
System Stored Procedures (Transact-SQL)
sys.key_constraints (Transact-SQL)
sys.check_constraints (Transact-SQL)
sys.default_constraints (Transact-SQL)