There may be times that you need to get a list of tables that have foreign key constraints back to a table that you’re working on. Fortunately, SQL Server has a built in system procedure that makes this extremely simple. Let me introduce you to sp_fkeys. This sweet little proc returns information about foreign key…
The post List All Foreign Keys Referencing A Table In SQL Server appeared first on SQL Nuggets.