Hi Let me know how to do this using SQl query - How to check whether a relationship is already set between 2 tables on a particular key. If it is not set then make a relationship. Regards Michael
It sure is possible. My tip to you is to look up the INFORMATION_SCHEMA views in Books Online. Some of the views contain the information you need. For example, look att INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS and INFORMATION_SCHEMA.CONSTRAINT_TABLE_USAGE.