Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Foreign Key Lookup (Name, columns, tables)

By Calvin Lawson,

This script will find all foreign key contraints in the database it is run on.  Includes.

Name of Foreign Key
Name of table FK is on
Name of column FK is on
Name of table FK references
Name of column FK references

Total article views: 122 | Views in the last 30 days: 1