how to get list of foreign keys in sql server code example Example: tsql find foreign key references EXEC sp_fkeys 'TableName'