Home  |  Articles  |  Scripts  |  Consultancy  |  FAQs  |  Links

 
-- Simple script showing tables with FK and not NFR

select table_name, constraint_name from INFORMATION_SCHEMA.TABLE_CONSTRAINTS
where constraint_type = 'foreign key'
and objectproperty(object_id(constraint_name),'CnstIsNotRepl') = 0