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