I need a query for SQL Server 2000 to get a list of all foreign keys.
Particularly all the foreign keys that point to a particular column.
How do I write thi
select * from INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
If you need more information about the key then you can join it to the INFORMATION_SCHEMA.KEY_COLUMN_USAGE view, which contains the columns referenced by the key.