appliedsql.net
Find all the Foriegn Key’s and their details in a database
The below script helps us to find all the foreign keys in a database and there details. i have used AdventureWorks2012 db as example. USE AdventureWorks2012 go SELECT fk.name AS ForeignKey, IsNotFo…