I’m posting this one here for myself. Whenever I get lost finding foreign keys in a SQL Server database I use this for a neat and tidy list of all foreign key constraints on a table.
This bit of SQL will go both ways for any given table. First it’ll get you a list of columns referencing other tables, then secondly a list of other tables referencing your table. Just supply it with a table name and you’re good to go.
I put this together based off of this StackOverflow answer.
Also check out the command sp_help 'TableName' for a bunch of useful information on a table, including foreign keys.