[Script Of Jul. 27] How to list the foreign keys and primary keys of a SQL Server table

Jul.
27

Script Download:
The script is available for download from https://gallery.technet.microsoft.com/scriptcenter/How-to-list-the-foreign-dd76873a.
The sample code demonstrates how to list the foreign keys and primary keys of SQL Server tables.
You can find more All-In-One Script Framework script samples at http://aka.ms/onescriptingallery

https://blogs.technet.microsoft.com/onescript/2016/07/27/script-of-jul-27-how-to-list-the-foreign-keys-and-primary-keys-of-a-sql-server-table/