sql show the table of the foreign key code example Example: tsql find foreign key references EXEC sp_fkeys 'TableName'