The query in this post return a list of Table Name, Column Name, and Column ID for all Primary Key columns within a database
Tag: Relationships
SQL: List of foreign key relationships
Use this query (in this post) to produce a list of foreign key relationships, including the referencing and referenced table and column