Recently one of my friend was doing some investigation in a new/unknown database and had really hard time locating the primary key – foreign key relations.
Like it’s really tough to locate these relations when not enforced at database level in terms of primary key and foreign key constraints. But generally all database developers keep the same column names in a database solution and my script is also based on this assumption.
This script will simply search the given column name in all the tables and will also show the relationship (Primary Key / Foreign key) of this column with columns in other tables.
Thanks
Mohit Nayyar