SQL script to check if foriegn keys found in table code example Example: tsql find foreign key references EXEC sp_fkeys 'TableName'