I am quite new to databases.
Is there a simple way to check on all tables of a DB if all foreign key values match an existing primary key value ?
Actually I am using a tool (Red Gate) to move many data of many tables from a database to another. I would like to check some kind of consistency after the work is complete.
The SQL script generated by the tool starts with ALTER TABLE ... NOCHECK CONSTRAINT ..., and ends with ALTER TABLE ... CHECK CONSTRAINT ..., maybe the work was already done by the script...
Any help greatly appreciated !