Below is the SQL to get all the relationships for a particular table in the database, via the system views SELECT SUBSTRING( (SELECT ' AND ' + Object_Schema_name(fk.Parent_object_ID) + '.' + OBJECT_NAME(fk.Parent_object_ID) + '.' + cr.name + ' = ' + Object ...
↧