SDU Tools: List Foreign Keys in a SQL Server Database
In SQL Server Management Studio, there’s no great way to list all the foreign keys that are defined in a database.
In our free SDU Tools for developers and DBAs, we added a function ListForeignKeys to do just that, and to provide their details in a form that’s easy to consume programmatically if you need that.
You can see how to execute it in the main image above. The procedure takes these parameters:
2018-10-17