Nearly identical to Query a Table's Foreign Key relationships, but for SQL Server 2000
For a given table 'foo', I need a query to generate a set of tables that have foreign keys that point to foo.
Nearly identical to Query a Table's Foreign Key relationships, but for SQL Server 2000
For a given table 'foo', I need a query to generate a set of tables that have foreign keys that point to foo.
Parents and children
Try this T-SQL:
I've rewritten the query slightly to give you all of the other tables that rely on a particular table:
Start here
[edit] formatting is all messed up
[edit2] no longer