sql server check foreign key constraints code example Example: how to check foreign key constraint in sql sp_help 'TableName'