In SQL Server is there a command to return a list of all tables with a relationship to a given table or view?
EDIT: SQL SERVER 2008
In SQL Server is there a command to return a list of all tables with a relationship to a given table or view?
EDIT: SQL SERVER 2008
For SQL Server 2005 and up, use something like:
Say your table name is TableX. If you want to know all foreign key relationships (columns of TableX referenced in other tables and columns of other tables referenced in TableX) you could do this: